diff options
author | LepkoQQ <lepko.san@gmail.com> | 2020-08-25 23:03:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-26 00:38:23 +0200 |
commit | 777b298880bbcac15213616adf0edf2e14255791 (patch) | |
tree | 95f0950a1012e40ca26d0c249fc2e26770b42016 | |
parent | 9e75c124a8e19bad8504dc04bab3324f67315fb7 (diff) | |
download | serenity-777b298880bbcac15213616adf0edf2e14255791.zip |
LibGUI: Change window size and margin in ColorPicker
-rw-r--r-- | Libraries/LibGUI/ColorPicker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/ColorPicker.cpp b/Libraries/LibGUI/ColorPicker.cpp index d1f5fb3c71..3466db44a2 100644 --- a/Libraries/LibGUI/ColorPicker.cpp +++ b/Libraries/LibGUI/ColorPicker.cpp @@ -139,7 +139,7 @@ ColorPicker::ColorPicker(Color color, Window* parent_window, String title) set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/color-chooser.png")); set_title(title); set_resizable(false); - resize(500, 326); + resize(458, 326); build_ui(); } @@ -246,7 +246,7 @@ void ColorPicker::build_ui_custom(Widget& root_container) auto& vertical_container = horizontal_container.add<Widget>(); vertical_container.set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); vertical_container.set_layout<VerticalBoxLayout>(); - vertical_container.layout()->set_margins({ 12, 0, 0, 0 }); + vertical_container.layout()->set_margins({ 8, 0, 0, 0 }); vertical_container.set_preferred_size(128, 0); auto& preview_container = vertical_container.add<Frame>(); |