mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
Calculator: Improve UI margin consistency
This commit is contained in:
parent
411622148a
commit
55c0307288
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
fixed_width: 254
|
fixed_width: 250
|
||||||
fixed_height: 215
|
fixed_height: 215
|
||||||
fill_with_background_color: true
|
fill_with_background_color: true
|
||||||
layout: @GUI::VerticalBoxLayout
|
layout: @GUI::VerticalBoxLayout
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
@GUI::Widget {
|
@GUI::Widget {
|
||||||
layout: @GUI::VerticalBoxLayout {
|
layout: @GUI::VerticalBoxLayout {
|
||||||
margins: [10, 2, 10, 0]
|
margins: [8, 8, 8, 8]
|
||||||
}
|
}
|
||||||
|
|
||||||
@GUI::TextBox {
|
@GUI::TextBox {
|
||||||
|
|
|
@ -42,7 +42,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, 215);
|
window->resize(250, 215);
|
||||||
|
|
||||||
auto& widget = window->set_main_widget<CalculatorWidget>();
|
auto& widget = window->set_main_widget<CalculatorWidget>();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue