mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
draw nsfw channels red again
This commit is contained in:
@@ -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" };
|
||||
|
||||
Reference in New Issue
Block a user