1
0
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:
ouwou 2023-12-16 20:01:56 -05:00
parent 0187e69584
commit 618cd27d94
2 changed files with 6 additions and 6 deletions

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;

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" };