1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:17:35 +00:00

Launcher: Tighten up the widget layout a bit.

This commit is contained in:
Andreas Kling 2019-06-30 15:58:53 +02:00
parent daf44d5ec5
commit 1fa467a424

View file

@ -68,13 +68,14 @@ GWindow* make_launcher_window()
auto* window = new GWindow; auto* window = new GWindow;
window->set_title("Launcher"); window->set_title("Launcher");
window->set_rect(50, 50, 50, config->groups().size() * 55 + 15); window->set_rect(50, 50, 50, config->groups().size() * 50);
window->set_show_titlebar(false); window->set_show_titlebar(false);
auto* widget = new GWidget; auto* widget = new GWidget;
widget->set_fill_with_background_color(true); widget->set_fill_with_background_color(true);
widget->set_layout(make<GBoxLayout>(Orientation::Vertical)); widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
widget->layout()->set_margins({ 5, 5, 5, 5 }); widget->layout()->set_spacing(0);
widget->layout()->set_margins({ 5, 0, 5, 0 });
window->set_main_widget(widget); window->set_main_widget(widget);
for (auto& group : config->groups()) { for (auto& group : config->groups()) {