mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +00:00
Calculator: Add a separator line between the menu and the main UI
This commit is contained in:
parent
3bca395190
commit
8e74c9dbb6
2 changed files with 237 additions and 226 deletions
|
@ -1,10 +1,19 @@
|
|||
@GUI::Widget {
|
||||
fixed_width: 254
|
||||
fixed_height: 213
|
||||
fixed_height: 215
|
||||
fill_with_background_color: true
|
||||
layout: @GUI::VerticalBoxLayout
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::VerticalBoxLayout
|
||||
|
||||
@GUI::HorizontalSeparator {
|
||||
fixed_height: 2
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [10, 0, 10, 0]
|
||||
margins: [10, 2, 10, 0]
|
||||
}
|
||||
|
||||
@GUI::TextBox {
|
||||
|
@ -270,3 +279,5 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ int main(int argc, char** argv)
|
|||
auto window = GUI::Window::construct();
|
||||
window->set_title("Calculator");
|
||||
window->set_resizable(false);
|
||||
window->resize(254, 213);
|
||||
window->resize(254, 215);
|
||||
|
||||
auto& widget = window->set_main_widget<CalculatorWidget>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue