Files

28 lines
775 B
C++
Raw Permalink Normal View History

2023-07-10 22:50:58 +02:00
#pragma once
#include <gtkmm/box.h>
#include <gtkmm/image.h>
#include "AIconLabel.hpp"
namespace waybar {
class AAppIconLabel : public AIconLabel {
public:
2026-02-04 09:24:14 +01:00
AAppIconLabel(const Json::Value& config, const std::string& name, const std::string& id,
const std::string& format, uint16_t interval = 0, bool ellipsize = false,
2023-07-10 22:50:58 +02:00
bool enable_click = false, bool enable_scroll = false);
virtual ~AAppIconLabel() = default;
auto update() -> void override;
protected:
2026-02-04 09:24:14 +01:00
void updateAppIconName(const std::string& app_identifier,
const std::string& alternative_app_identifier);
2023-07-10 22:50:58 +02:00
void updateAppIcon();
unsigned app_icon_size_{24};
bool update_app_icon_{true};
std::string app_icon_name_;
};
} // namespace waybar