mirror of
https://github.com/uowuo/abaddon.git
synced 2025-03-04 03:03:16 -05:00
draw nsfw channels red again
This commit is contained in:
parent
0187e69584
commit
618cd27d94
@ -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;
|
||||
|
||||
|
@ -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" };
|
||||
|
Loading…
Reference in New Issue
Block a user