summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/StylePainter.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-23 14:37:13 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-23 14:37:13 +0200
commitf0cac83243037900f7981087fd91408c2f75bb79 (patch)
treef1a77f2242104e752a51649f9c18ddbe5105008c /Libraries/LibGfx/StylePainter.cpp
parent9ab9f97464bb7cac1f40b5e033f69850210d248b (diff)
downloadserenity-f0cac83243037900f7981087fd91408c2f75bb79.zip
WindowServer+LibGfx: Make window borders 1px thicker
Diffstat (limited to 'Libraries/LibGfx/StylePainter.cpp')
-rw-r--r--Libraries/LibGfx/StylePainter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibGfx/StylePainter.cpp b/Libraries/LibGfx/StylePainter.cpp
index 6d086fd325..f8de190a19 100644
--- a/Libraries/LibGfx/StylePainter.cpp
+++ b/Libraries/LibGfx/StylePainter.cpp
@@ -248,13 +248,17 @@ void StylePainter::paint_window_frame(Painter& painter, const Rect& rect, const
painter.draw_line(rect.top_left().translated(1, 1), rect.bottom_left().translated(1, -1), light_shade);
painter.draw_line(rect.top_left().translated(2, 2), rect.top_right().translated(-2, 2), base_color);
painter.draw_line(rect.top_left().translated(2, 2), rect.bottom_left().translated(2, -2), base_color);
+ painter.draw_line(rect.top_left().translated(3, 3), rect.top_right().translated(-3, 3), base_color);
+ painter.draw_line(rect.top_left().translated(3, 3), rect.bottom_left().translated(3, -3), base_color);
painter.draw_line(rect.top_right(), rect.bottom_right(), dark_shade);
painter.draw_line(rect.top_right().translated(-1, 1), rect.bottom_right().translated(-1, -1), mid_shade);
painter.draw_line(rect.top_right().translated(-2, 2), rect.bottom_right().translated(-2, -2), base_color);
+ painter.draw_line(rect.top_right().translated(-3, 3), rect.bottom_right().translated(-3, -3), base_color);
painter.draw_line(rect.bottom_left(), rect.bottom_right(), dark_shade);
painter.draw_line(rect.bottom_left().translated(1, -1), rect.bottom_right().translated(-1, -1), mid_shade);
painter.draw_line(rect.bottom_left().translated(2, -2), rect.bottom_right().translated(-2, -2), base_color);
+ painter.draw_line(rect.bottom_left().translated(3, -3), rect.bottom_right().translated(-3, -3), base_color);
}
void StylePainter::paint_progress_bar(Painter& painter, const Rect& rect, const Palette& palette, int min, int max, int value, const StringView& text)