1
Fork 0
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:
Tibor Nagy 2020-02-20 09:01:48 +01:00 committed by Andreas Kling
parent 7592f9afd5
commit c8bc53e987
9 changed files with 9 additions and 1 deletions

View file

@ -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)