mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
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).
This commit is contained in:
parent
c17f9adb12
commit
9c9a5c55cb
43 changed files with 78 additions and 78 deletions
|
@ -262,7 +262,7 @@ static bool prompt_to_stop_profiling(pid_t pid, const String& process_name)
|
|||
auto& widget = window->set_main_widget<GUI::Widget>();
|
||||
widget.set_fill_with_background_color(true);
|
||||
auto& layout = widget.set_layout<GUI::VerticalBoxLayout>();
|
||||
layout.set_margins(GUI::Margins(0, 0, 0, 16));
|
||||
layout.set_margins({ 0, 0, 16, 0 });
|
||||
|
||||
auto& timer_label = widget.add<GUI::Label>("...");
|
||||
Core::ElapsedTimer clock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue