diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-02-02 02:00:32 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-02-02 02:00:32 -0500 |
commit | b92091b97d1d43e33c3217451f72addbd0f76726 (patch) | |
tree | 2ba4a08f4acb23608a9680327e5ad6978f25d563 | |
parent | 2be776b12f6124002fdf8a35b4bef19ce8e93bb1 (diff) | |
download | abaddon-portaudio-b92091b97d1d43e33c3217451f72addbd0f76726.tar.gz abaddon-portaudio-b92091b97d1d43e33c3217451f72addbd0f76726.zip |
hide scrollbar in classic guild list
-rw-r--r-- | res/css/main.css | 11 | ||||
-rw-r--r-- | src/components/channellist/channellist.cpp | 1 | ||||
-rw-r--r-- | src/components/channellist/classic/guildlist.cpp | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/res/css/main.css b/res/css/main.css index ae7bf60..d29174c 100644 --- a/res/css/main.css +++ b/res/css/main.css @@ -145,3 +145,14 @@ .message-text.failed { color: red; } + +.guild-list-scroll > scrollbar { + border: none; +} + +.guild-list-scroll > scrollbar slider { + border: none; + margin: 0px; + min-width: 0px; + min-height: 0px; +} diff --git a/src/components/channellist/channellist.cpp b/src/components/channellist/channellist.cpp index 87aa6ed..076a83e 100644 --- a/src/components/channellist/channellist.cpp +++ b/src/components/channellist/channellist.cpp @@ -9,6 +9,7 @@ ChannelList::ChannelList() { m_guilds.set_halign(Gtk::ALIGN_START); + m_guilds_scroll.get_style_context()->add_class("guild-list-scroll"); m_guilds_scroll.set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); m_guilds.signal_guild_selected().connect([this](Snowflake guild_id) { diff --git a/src/components/channellist/classic/guildlist.cpp b/src/components/channellist/classic/guildlist.cpp index ae613bf..49ee87c 100644 --- a/src/components/channellist/classic/guildlist.cpp +++ b/src/components/channellist/classic/guildlist.cpp @@ -19,6 +19,7 @@ private: }; GuildList::GuildList() { + get_style_context()->add_class("guild-list"); set_selection_mode(Gtk::SELECTION_NONE); show_all_children(); } |