About: Oops, fill the window with background color.

This commit is contained in:
Andreas Kling 2019-03-14 19:24:08 +01:00
parent 49f273c4ca
commit 4919b926f4
Notes: sideshowbarker 2024-07-19 15:03:07 +09:00

View file

@ -18,6 +18,7 @@ int main(int argc, char** argv)
auto* widget = new GWidget;
window->set_main_widget(widget);
widget->set_fill_with_background_color(true);
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
widget->layout()->set_margins({ 0, 8, 0, 8 });
widget->layout()->set_spacing(8);