diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-12-24 02:44:56 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-12-24 02:44:56 -0500 |
commit | d2cbe00af25bacd40fc4c55191bf9c9073aca1bf (patch) | |
tree | c9e1132258c77b5c1c084cc5c323370b0afbb103 /src/components/channelscellrenderer.hpp | |
parent | 1ba3daa04ac374504a5cdf62cb5fde44f12027bc (diff) | |
download | abaddon-portaudio-d2cbe00af25bacd40fc4c55191bf9c9073aca1bf.tar.gz abaddon-portaudio-d2cbe00af25bacd40fc4c55191bf9c9073aca1bf.zip |
colors, fallback if guild_folders is empty
Diffstat (limited to 'src/components/channelscellrenderer.hpp')
-rw-r--r-- | src/components/channelscellrenderer.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/channelscellrenderer.hpp b/src/components/channelscellrenderer.hpp index 00c3603..f5ba796 100644 --- a/src/components/channelscellrenderer.hpp +++ b/src/components/channelscellrenderer.hpp @@ -28,6 +28,7 @@ public: Glib::PropertyProxy<Glib::RefPtr<Gdk::PixbufAnimation>> property_icon_animation(); Glib::PropertyProxy<bool> property_expanded(); Glib::PropertyProxy<bool> property_nsfw(); + Glib::PropertyProxy<std::optional<Gdk::RGBA>> property_color(); protected: void get_preferred_width_vfunc(Gtk::Widget &widget, int &minimum_width, int &natural_width) const override; @@ -130,6 +131,7 @@ private: Glib::Property<Glib::RefPtr<Gdk::PixbufAnimation>> m_property_pixbuf_animation; // guild Glib::Property<bool> m_property_expanded; // category Glib::Property<bool> m_property_nsfw; // channel + Glib::Property<std::optional<Gdk::RGBA>> m_property_color; // folder // same pitfalls as in https://github.com/uowuo/abaddon/blob/60404783bd4ce9be26233fe66fc3a74475d9eaa3/components/cellrendererpixbufanimation.hpp#L32-L39 // this will manifest though since guild icons can change |