hide scrollbar in classic guild list

This commit is contained in:
ouwou 2024-02-02 02:00:32 -05:00
parent 2be776b12f
commit b92091b97d
3 changed files with 13 additions and 0 deletions

View File

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

View File

@ -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) {

View File

@ -19,6 +19,7 @@ private:
};
GuildList::GuildList() {
get_style_context()->add_class("guild-list");
set_selection_mode(Gtk::SELECTION_NONE);
show_all_children();
}