Skip to content

Commit

Permalink
hide scrollbar in classic guild list
Browse files Browse the repository at this point in the history
  • Loading branch information
ouwou committed Feb 2, 2024
1 parent 2be776b commit b92091b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions res/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 1 addition & 0 deletions src/components/channellist/channellist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/components/channellist/classic/guildlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class GuildListDMsButton : public Gtk::EventBox {
};

GuildList::GuildList() {
get_style_context()->add_class("guild-list");
set_selection_mode(Gtk::SELECTION_NONE);
show_all_children();
}
Expand Down

0 comments on commit b92091b

Please sign in to comment.