Merge pull request #4719 from oisanjaya/encode_icon_inside_label

Encode icon inside label
This commit is contained in:
Alexis Rouillard
2026-07-03 22:32:42 +02:00
committed by GitHub
2 changed files with 52 additions and 1 deletions
+4
View File
@@ -14,10 +14,14 @@ class AIconLabel : public ALabel {
bool enable_click = false, bool enable_scroll = false);
virtual ~AIconLabel() = default;
auto update() -> void override;
static std::tuple<std::string, std::string> extractIcon(const std::string& input);
protected:
Gtk::Image image_;
Gtk::Box box_;
unsigned app_icon_size_{24};
bool label_contains_icon{false};
bool iconEnabled() const;
};