diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-04 18:54:43 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-04 18:54:43 +0200 |
commit | 52f62c2d7eba8e96be6bda90b00e9023628bc86c (patch) | |
tree | 26a575d50252bbaeb9654c576d2c78ae88655f4f /Applications | |
parent | 123a3cad778f83a0d2b5813ebe5d61caa75a1a2b (diff) | |
download | serenity-52f62c2d7eba8e96be6bda90b00e9023628bc86c.zip |
IRCClient: Tweak UI to look less padding-bloated
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/IRCClient/IRCAppWindow.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Applications/IRCClient/IRCAppWindow.cpp b/Applications/IRCClient/IRCAppWindow.cpp index de3ef43aa3..9685a60051 100644 --- a/Applications/IRCClient/IRCAppWindow.cpp +++ b/Applications/IRCClient/IRCAppWindow.cpp @@ -154,9 +154,10 @@ void IRCAppWindow::setup_widgets() widget->set_fill_with_background_color(true); widget->set_background_color(Color::WarmGray); widget->set_layout(make<GBoxLayout>(Orientation::Vertical)); - widget->layout()->set_margins({ 4, 4, 4, 4 }); + widget->layout()->set_spacing(0); auto* toolbar = new GToolBar(widget); + toolbar->set_has_frame(false); toolbar->add_action(*m_change_nick_action); toolbar->add_separator(); toolbar->add_action(*m_join_action); @@ -166,7 +167,11 @@ void IRCAppWindow::setup_widgets() toolbar->add_action(*m_open_query_action); toolbar->add_action(*m_close_query_action); - auto* horizontal_container = new GSplitter(Orientation::Horizontal, widget); + auto* outer_container = new GWidget(widget); + outer_container->set_layout(make<GBoxLayout>(Orientation::Vertical)); + outer_container->layout()->set_margins({ 2, 0, 2, 2 }); + + auto* horizontal_container = new GSplitter(Orientation::Horizontal, outer_container); m_window_list = new GTableView(horizontal_container); m_window_list->set_headers_visible(false); |