mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibGfx+LibGUI: Allow theming the text cursor
This commit is contained in:
parent
7592f9afd5
commit
c8bc53e987
Notes:
sideshowbarker
2024-07-19 09:12:13 +09:00
Author: https://github.com/xTibor
Commit: c8bc53e987
Pull-request: https://github.com/SerenityOS/serenity/pull/1255
9 changed files with 9 additions and 1 deletions
|
@ -496,7 +496,7 @@ void TextEditor::paint_event(PaintEvent& event)
|
|||
}
|
||||
|
||||
if (is_focused() && m_cursor_state)
|
||||
painter.fill_rect(cursor_content_rect(), Color::Red);
|
||||
painter.fill_rect(cursor_content_rect(), palette().text_cursor());
|
||||
}
|
||||
|
||||
void TextEditor::toggle_selection_if_needed_for_event(const KeyEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue