From 057dd2a1f8de65e4885f48211e324e1b966f4e2f Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 21 May 2024 02:06:20 -0400 Subject: add ugly little mention indicator to classic guild listing --- src/components/channellist/classic/mentionoverlay.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/components/channellist/classic/mentionoverlay.hpp (limited to 'src/components/channellist/classic/mentionoverlay.hpp') diff --git a/src/components/channellist/classic/mentionoverlay.hpp b/src/components/channellist/classic/mentionoverlay.hpp new file mode 100644 index 0000000..24eb7e2 --- /dev/null +++ b/src/components/channellist/classic/mentionoverlay.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include +#include + +#include "discord/snowflake.hpp" + +class MentionOverlay : public Gtk::DrawingArea { +public: + MentionOverlay(Snowflake guild_id); + +private: + bool OnDraw(const Cairo::RefPtr &cr); + + Snowflake m_guild_id; + + Pango::FontDescription m_font; + Glib::RefPtr m_layout; +}; -- cgit v1.2.3