1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

Calculator: Add a separator line between the menu and the main UI

This commit is contained in:
Andreas Kling 2021-04-10 16:08:14 +02:00
parent 3bca395190
commit 8e74c9dbb6
2 changed files with 237 additions and 226 deletions

View file

@ -1,10 +1,19 @@
@GUI::Widget { @GUI::Widget {
fixed_width: 254 fixed_width: 254
fixed_height: 213 fixed_height: 215
fill_with_background_color: true fill_with_background_color: true
layout: @GUI::VerticalBoxLayout
@GUI::Widget {
layout: @GUI::VerticalBoxLayout
@GUI::HorizontalSeparator {
fixed_height: 2
}
@GUI::Widget {
layout: @GUI::VerticalBoxLayout { layout: @GUI::VerticalBoxLayout {
margins: [10, 0, 10, 0] margins: [10, 2, 10, 0]
} }
@GUI::TextBox { @GUI::TextBox {
@ -270,3 +279,5 @@
} }
} }
} }
}
}

View file

@ -62,7 +62,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct(); auto window = GUI::Window::construct();
window->set_title("Calculator"); window->set_title("Calculator");
window->set_resizable(false); window->set_resizable(false);
window->resize(254, 213); window->resize(254, 215);
auto& widget = window->set_main_widget<CalculatorWidget>(); auto& widget = window->set_main_widget<CalculatorWidget>();