diff --git a/Userland/Applications/HexEditor/HexEditor.cpp b/Userland/Applications/HexEditor/HexEditor.cpp index 0121cb1894..a2fecf6583 100644 --- a/Userland/Applications/HexEditor/HexEditor.cpp +++ b/Userland/Applications/HexEditor/HexEditor.cpp @@ -567,6 +567,12 @@ void HexEditor::context_menu_event(GUI::ContextMenuEvent& event) m_context_menu->popup(event.screen_position()); } +void HexEditor::theme_change_event(GUI::ThemeChangeEvent&) +{ + set_font(Gfx::FontDatabase::default_fixed_width_font()); + update_content_size(); +} + void HexEditor::update_status() { if (on_status_change) diff --git a/Userland/Applications/HexEditor/HexEditor.h b/Userland/Applications/HexEditor/HexEditor.h index a5963ac023..48f0b65626 100644 --- a/Userland/Applications/HexEditor/HexEditor.h +++ b/Userland/Applications/HexEditor/HexEditor.h @@ -83,6 +83,7 @@ protected: virtual void mousemove_event(GUI::MouseEvent&) override; virtual void keydown_event(GUI::KeyEvent&) override; virtual void context_menu_event(GUI::ContextMenuEvent&) override; + virtual void theme_change_event(GUI::ThemeChangeEvent&) override; private: size_t m_line_spacing { 4 };