summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-23 15:58:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-23 15:58:39 +0200
commit5b6c2f3bd6b109dcb243223e6a1df61d478d4fb9 (patch)
tree453edeb3a356ad40320e774b950aadbdc40edd60
parent81ebc0cfe3fabaeb34ffcfc7a214513ca1e39430 (diff)
downloadserenity-5b6c2f3bd6b109dcb243223e6a1df61d478d4fb9.zip
LibGUI: Make sure the ResizeCorner aligns nicely inside StatusBar
-rw-r--r--Libraries/LibGUI/ResizeCorner.cpp6
-rw-r--r--Libraries/LibGUI/StatusBar.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibGUI/ResizeCorner.cpp b/Libraries/LibGUI/ResizeCorner.cpp
index 4aa3ca2939..bf12e6dee3 100644
--- a/Libraries/LibGUI/ResizeCorner.cpp
+++ b/Libraries/LibGUI/ResizeCorner.cpp
@@ -79,7 +79,7 @@ ResizeCorner::ResizeCorner()
{
set_background_role(ColorRole::Button);
set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
- set_preferred_size(16, 16);
+ set_preferred_size(16, 18);
}
ResizeCorner::~ResizeCorner()
@@ -94,11 +94,11 @@ void ResizeCorner::paint_event(PaintEvent& event)
if (!s_resize_corner_shadows_bitmap)
s_resize_corner_shadows_bitmap = &Gfx::CharacterBitmap::create_from_ascii(s_resize_corner_shadows_data, s_resize_corner_bitmap_width, s_resize_corner_bitmap_height).leak_ref();
- painter.draw_bitmap({ 0, 0 }, *s_resize_corner_shadows_bitmap, palette().threed_shadow1());
+ painter.draw_bitmap({ 0, 2 }, *s_resize_corner_shadows_bitmap, palette().threed_shadow1());
if (!s_resize_corner_highlights_bitmap)
s_resize_corner_highlights_bitmap = &Gfx::CharacterBitmap::create_from_ascii(s_resize_corner_highlights_data, s_resize_corner_bitmap_width, s_resize_corner_bitmap_height).leak_ref();
- painter.draw_bitmap({ 0, 0 }, *s_resize_corner_highlights_bitmap, palette().threed_highlight());
+ painter.draw_bitmap({ 0, 2 }, *s_resize_corner_highlights_bitmap, palette().threed_highlight());
Widget::paint_event(event);
}
diff --git a/Libraries/LibGUI/StatusBar.cpp b/Libraries/LibGUI/StatusBar.cpp
index 5e9fb46d0e..004f266e1e 100644
--- a/Libraries/LibGUI/StatusBar.cpp
+++ b/Libraries/LibGUI/StatusBar.cpp
@@ -39,7 +39,7 @@ StatusBar::StatusBar(int label_count)
set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
set_preferred_size(0, 20);
set_layout<HorizontalBoxLayout>();
- layout()->set_margins({ 0, 2, 0, 1 });
+ layout()->set_margins({ 0, 3, 0, 0 });
layout()->set_spacing(2);
if (label_count < 1)