From 59b9e9cd4d773abc95effdd2a99dc96b1301356a Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Thu, 20 Feb 2020 09:56:06 +0100 Subject: [PATCH] Minesweeper: Use system theme colors for empty square borders --- Games/Minesweeper/Field.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Games/Minesweeper/Field.cpp b/Games/Minesweeper/Field.cpp index 629da5cd812..e4d2e88af1e 100644 --- a/Games/Minesweeper/Field.cpp +++ b/Games/Minesweeper/Field.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -327,12 +328,12 @@ void Field::paint_event(GUI::PaintEvent& event) for (int y = inner_rect.top() - 1; y <= inner_rect.bottom(); y += square_size()) { Gfx::Point a { inner_rect.left(), y }; Gfx::Point b { inner_rect.right(), y }; - painter.draw_line(a, b, Color::MidGray); + painter.draw_line(a, b, palette().threed_shadow1()); } for (int x = frame_inner_rect().left() - 1; x <= frame_inner_rect().right(); x += square_size()) { Gfx::Point a { x, inner_rect.top() }; Gfx::Point b { x, inner_rect.bottom() }; - painter.draw_line(a, b, Color::MidGray); + painter.draw_line(a, b, palette().threed_shadow1()); } }