summaryrefslogtreecommitdiff
path: root/src/components/channelscellrenderer.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-01-05 03:52:20 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2022-01-05 03:52:20 -0500
commit40106ddeb11a755864e446920b74739f1ec21c57 (patch)
treeaccbb08e769727e623fb53223d00e71b1c57482e /src/components/channelscellrenderer.cpp
parent8695562cb4b34c70d4d6b607042988de7b6e244d (diff)
downloadabaddon-portaudio-40106ddeb11a755864e446920b74739f1ec21c57.tar.gz
abaddon-portaudio-40106ddeb11a755864e446920b74739f1ec21c57.zip
handle mutable categories
Diffstat (limited to 'src/components/channelscellrenderer.cpp')
-rw-r--r--src/components/channelscellrenderer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/channelscellrenderer.cpp b/src/components/channelscellrenderer.cpp
index 325d45a..b998442 100644
--- a/src/components/channelscellrenderer.cpp
+++ b/src/components/channelscellrenderer.cpp
@@ -327,7 +327,11 @@ void CellRendererChannels::render_vfunc_category(const Cairo::RefPtr<Cairo::Cont
Gdk::Rectangle text_cell_area(text_x, text_y, text_w, text_h);
+ static Gdk::RGBA muted_color("#7f7f7f");
+ if (Abaddon::Get().GetDiscordClient().IsChannelMuted(m_property_id.get_value()))
+ m_renderer_text.property_foreground_rgba() = muted_color;
m_renderer_text.render(cr, widget, background_area, text_cell_area, flags);
+ m_renderer_text.property_foreground_set() = false;
}
// text channel