mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 16:02:53 +00:00
LibGUI: Add a ThemeChange event
This commit is contained in:
parent
2b162ef794
commit
2a32330257
Notes:
sideshowbarker
2024-07-19 08:17:06 +09:00
Author: https://github.com/oriko1010
Commit: 2a32330257
Pull-request: https://github.com/SerenityOS/serenity/pull/1471
8 changed files with 53 additions and 1 deletions
|
@ -1279,6 +1279,13 @@ void TextEditor::resize_event(ResizeEvent& event)
|
|||
recompute_all_visual_lines();
|
||||
}
|
||||
|
||||
void TextEditor::theme_change_event(ThemeChangeEvent& event)
|
||||
{
|
||||
ScrollableWidget::theme_change_event(event);
|
||||
if (m_highlighter)
|
||||
m_highlighter->rehighlight(palette());
|
||||
}
|
||||
|
||||
void TextEditor::set_selection(const TextRange& selection)
|
||||
{
|
||||
if (m_selection == selection)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue