mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:35:06 +00:00
LibGfx+LibGUI: Allow theming the text cursor
This commit is contained in:
parent
7592f9afd5
commit
c8bc53e987
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