From 2d40df821a452de28ee096d4f49a5a6691998112 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 2 Mar 2024 13:46:26 -0500 Subject: [PATCH] Keymap: Draw the current keymap text with the correct theme color Otherwise it is dark and hard to read against dark themes. --- Userland/Applets/Keymap/KeymapStatusWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Applets/Keymap/KeymapStatusWidget.cpp b/Userland/Applets/Keymap/KeymapStatusWidget.cpp index 27afd9fa77..5f20a541ab 100644 --- a/Userland/Applets/Keymap/KeymapStatusWidget.cpp +++ b/Userland/Applets/Keymap/KeymapStatusWidget.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include KeymapStatusWidget::KeymapStatusWidget() = default; @@ -75,5 +76,5 @@ void KeymapStatusWidget::paint_event(GUI::PaintEvent& event) GUI::Painter painter(*this); painter.add_clip_rect(event.rect()); painter.clear_rect(event.rect(), Gfx::Color::Transparent); - painter.draw_text(rect(), m_current_keymap.substring_view(0, 2), Gfx::TextAlignment::Center); + painter.draw_text(rect(), m_current_keymap.substring_view(0, 2), Gfx::TextAlignment::Center, palette().window_text()); }