Calculator: Improve UI margin consistency

This commit is contained in:
FrHun 2021-07-27 21:11:06 +02:00 committed by Andreas Kling
parent 411622148a
commit 55c0307288
Notes: sideshowbarker 2024-07-18 08:00:44 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
@GUI::Widget {
fixed_width: 254
fixed_width: 250
fixed_height: 215
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout
@ -13,7 +13,7 @@
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {
margins: [10, 2, 10, 0]
margins: [8, 8, 8, 8]
}
@GUI::TextBox {

View file

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