diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-13 00:51:35 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-13 11:49:18 +0100 |
commit | 919d3dc56f22228af072e637f4311ac63d08a372 (patch) | |
tree | 9f702bb3c33ab5f2a877760952c4318fbd4f41f2 /Applications | |
parent | 3ee5694e9781fe679c35a5116ed76a1a490e1c34 (diff) | |
download | serenity-919d3dc56f22228af072e637f4311ac63d08a372.zip |
DisplaySettings: Improve contrast of screen resolution label
Since we're putting this on top of the wallpaper preview, let's make
it white with a black shadow to ensure that it's always readable.
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/DisplaySettings/MonitorWidget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Applications/DisplaySettings/MonitorWidget.cpp b/Applications/DisplaySettings/MonitorWidget.cpp index 1108577818..cb83eefcd1 100644 --- a/Applications/DisplaySettings/MonitorWidget.cpp +++ b/Applications/DisplaySettings/MonitorWidget.cpp @@ -106,6 +106,8 @@ void MonitorWidget::paint_event(GUI::PaintEvent& event) painter.blit({ 0, 0 }, *m_monitor_bitmap, m_monitor_bitmap->rect()); painter.draw_scaled_bitmap(m_monitor_rect, *screen_bitmap, screen_bitmap->rect()); - if (!m_desktop_resolution.is_null()) - painter.draw_text(m_monitor_rect, m_desktop_resolution.to_string(), Gfx::TextAlignment::Center); + if (!m_desktop_resolution.is_null()) { + painter.draw_text(m_monitor_rect.translated(1, 1), m_desktop_resolution.to_string(), Gfx::TextAlignment::Center, Color::Black); + painter.draw_text(m_monitor_rect, m_desktop_resolution.to_string(), Gfx::TextAlignment::Center, Color::White); + } } |