draw nsfw channels red again

This commit is contained in:
ouwou committed 2023-12-16 20:01:56 -05:00
1 parent 0187e69584
commit 618cd27d94
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -475,11 +475,11 @@ void CellRendererChannels::render_vfunc_channel(const Cairo::RefPtr<Cairo::Conte
static const auto nsfw_color = Gdk::RGBA(Abaddon::Get().GetSettings().NSFWChannelColor);
if (is_muted) {
auto color = widget.get_style_context()->get_color(Gtk::STATE_FLAG_NORMAL);
color.set_alpha(0.6);
m_renderer_text.property_foreground_rgba() = color;
}
auto color = widget.get_style_context()->get_color(Gtk::STATE_FLAG_NORMAL);
if (property_nsfw()) color = nsfw_color;
if (is_muted) color.set_alpha(0.6);
m_renderer_text.property_foreground_rgba() = color;
m_renderer_text.render(cr, widget, background_area, text_cell_area, flags);
m_renderer_text.property_foreground_set() = false;
+1 -1
View File
@@ -39,7 +39,7 @@ public:
// [style]
std::string ChannelsExpanderColor { "rgba(255, 83, 112, 0)" };
std::string NSFWChannelColor { "#ed6666" };
std::string NSFWChannelColor { "#970d0d" };
std::string MentionBadgeColor { "#b82525" };
std::string MentionBadgeTextColor { "#fbfbfb" };
std::string UnreadIndicatorColor { "#ffffff" };