summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-12-16 20:01:56 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2023-12-16 20:01:56 -0500
commit618cd27d94a23a23674fe759bdc74f938ac3d6fe (patch)
tree49cfac2c476a56b67ae366ad2f670f4ede906777 /src
parent0187e6958464f9a9d5c8bc1143d6dfac60e862b1 (diff)
downloadabaddon-portaudio-618cd27d94a23a23674fe759bdc74f938ac3d6fe.tar.gz
abaddon-portaudio-618cd27d94a23a23674fe759bdc74f938ac3d6fe.zip
draw nsfw channels red again
Diffstat (limited to 'src')
-rw-r--r--src/components/channelscellrenderer.cpp10
-rw-r--r--src/settings.hpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/components/channelscellrenderer.cpp b/src/components/channelscellrenderer.cpp
index 7fd97da..d612812 100644
--- a/src/components/channelscellrenderer.cpp
+++ b/src/components/channelscellrenderer.cpp
@@ -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;
diff --git a/src/settings.hpp b/src/settings.hpp
index 99e1adc..c51e635 100644
--- a/src/settings.hpp
+++ b/src/settings.hpp
@@ -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" };