mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Keymap: Draw the current keymap text with the correct theme color
Otherwise it is dark and hard to read against dark themes.
This commit is contained in:
parent
3ca827d27a
commit
2d40df821a
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibGUI/Menu.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/Process.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <LibGfx/Point.h>
|
||||
|
||||
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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue