mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +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
Notes:
sideshowbarker
2024-07-16 23:51:07 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/2d40df821a Pull-request: https://github.com/SerenityOS/serenity/pull/23434
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…
Reference in a new issue