summaryrefslogtreecommitdiff
path: root/WindowServer/WSWindowManager.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-25 03:48:50 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-25 03:48:50 +0100
commitc6b7b92625fc762ab300aeef78de7090550000cb (patch)
treef2703f00271769b042636d7a13e27351dc8a93ae /WindowServer/WSWindowManager.cpp
parent623847cf6d2c83e51b76dda98973160f03ea7665 (diff)
downloadserenity-c6b7b92625fc762ab300aeef78de7090550000cb.zip
WindowServer: Put the desktop background color in a member.
Diffstat (limited to 'WindowServer/WSWindowManager.cpp')
-rw-r--r--WindowServer/WSWindowManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/WindowServer/WSWindowManager.cpp b/WindowServer/WSWindowManager.cpp
index 418e2d46d7..309a59ed20 100644
--- a/WindowServer/WSWindowManager.cpp
+++ b/WindowServer/WSWindowManager.cpp
@@ -121,12 +121,11 @@ WSWindowManager::WSWindowManager()
m_front_painter = make<Painter>(*m_front_bitmap);
m_back_painter = make<Painter>(*m_back_bitmap);
+ m_background_color = Color(0, 72, 96);
m_active_window_border_color = Color(0, 64, 192);
m_active_window_title_color = Color::White;
-
m_inactive_window_border_color = Color(64, 64, 64);
m_inactive_window_title_color = Color::White;
-
m_dragging_window_border_color = Color(32, 96, 216);
m_dragging_window_title_color = Color::White;
@@ -332,7 +331,7 @@ void WSWindowManager::compose()
continue;
}
//dbgprintf("Repaint root %d,%d %dx%d\n", dirty_rect.x(), dirty_rect.y(), dirty_rect.width(), dirty_rect.height());
- m_back_painter->fill_rect(dirty_rect, Color(0, 72, 96));
+ m_back_painter->fill_rect(dirty_rect, m_background_color);
}
for (auto* window = m_windows_in_order.head(); window; window = window->next()) {
WSWindowLocker locker(*window);