diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2021-08-17 00:10:51 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-18 10:30:50 +0200 |
commit | 9c9a5c55cb34c63f3b6d3bf36dcbc6c37a429677 (patch) | |
tree | 368b982eb9ccf6ccf55aa3cdfe5ea32d613c5aa4 /Userland/Services/Taskbar/ClockWidget.cpp | |
parent | c17f9adb1203501ae22f51188d02ed98b53128b7 (diff) | |
download | serenity-9c9a5c55cb34c63f3b6d3bf36dcbc6c37a429677.zip |
Userland+LibGUI: Make Margins arguments match CSS ordering
Previously the argument order for Margins was (left, top, right,
bottom). To make it more familiar and closer to how CSS does it, the
argument order is now (top, right, bottom, left).
Diffstat (limited to 'Userland/Services/Taskbar/ClockWidget.cpp')
-rw-r--r-- | Userland/Services/Taskbar/ClockWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Services/Taskbar/ClockWidget.cpp b/Userland/Services/Taskbar/ClockWidget.cpp index 287c02636f..5844bd828b 100644 --- a/Userland/Services/Taskbar/ClockWidget.cpp +++ b/Userland/Services/Taskbar/ClockWidget.cpp @@ -47,7 +47,7 @@ ClockWidget::ClockWidget() auto& root_container = m_calendar_window->set_main_widget<GUI::Label>(); root_container.set_fill_with_background_color(true); root_container.set_layout<GUI::VerticalBoxLayout>(); - root_container.layout()->set_margins({ 0, 2, 0, 2 }); + root_container.layout()->set_margins({ 2, 0, 2, 0 }); root_container.layout()->set_spacing(0); root_container.set_frame_thickness(2); root_container.set_frame_shape(Gfx::FrameShape::Container); @@ -56,7 +56,7 @@ ClockWidget::ClockWidget() auto& navigation_container = root_container.add<GUI::Widget>(); navigation_container.set_fixed_height(24); navigation_container.set_layout<GUI::HorizontalBoxLayout>(); - navigation_container.layout()->set_margins({ 2, 2, 3, 2 }); + navigation_container.layout()->set_margins({ 2, 3, 2, 2 }); m_prev_date = navigation_container.add<GUI::Button>(); m_prev_date->set_button_style(Gfx::ButtonStyle::Coolbar); @@ -120,7 +120,7 @@ ClockWidget::ClockWidget() auto& calendar_container = root_container.add<GUI::Widget>(); calendar_container.set_layout<GUI::HorizontalBoxLayout>(); - calendar_container.layout()->set_margins({ 4, 4, 5, 4 }); + calendar_container.layout()->set_margins({ 4, 5, 4, 4 }); m_calendar = calendar_container.add<GUI::Calendar>(); m_selected_calendar_button->set_text(m_calendar->formatted_date()); @@ -139,7 +139,7 @@ ClockWidget::ClockWidget() auto& settings_container = root_container.add<GUI::Widget>(); settings_container.set_fixed_height(24); settings_container.set_layout<GUI::HorizontalBoxLayout>(); - settings_container.layout()->set_margins({ 2, 2, 3, 2 }); + settings_container.layout()->set_margins({ 2, 3, 2, 2 }); settings_container.layout()->add_spacer(); m_jump_to_button = settings_container.add<GUI::Button>(); |