mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
ThemeEditor: Allow temporarily overriding the system theme
This patch introduces two new buttons to apply the current theme being edited to the whole system and to reset to the previously selected on disk system theme.
This commit is contained in:
parent
e2d2b403e9
commit
28f4b67bdc
3 changed files with 126 additions and 6 deletions
|
@ -91,8 +91,11 @@ private:
|
|||
MainWidget();
|
||||
|
||||
void save_to_file(Core::File&);
|
||||
ErrorOr<Core::AnonymousBuffer> encode();
|
||||
void set_path(String);
|
||||
|
||||
void build_override_controls();
|
||||
|
||||
void add_property_tab(PropertyTab const&);
|
||||
void set_alignment(Gfx::AlignmentRole, Gfx::TextAlignment);
|
||||
void set_color(Gfx::ColorRole, Gfx::Color);
|
||||
|
@ -112,6 +115,9 @@ private:
|
|||
RefPtr<GUI::TabWidget> m_property_tabs;
|
||||
RefPtr<GUI::Action> m_save_action;
|
||||
|
||||
RefPtr<GUI::Button> m_theme_override_apply;
|
||||
RefPtr<GUI::Button> m_theme_override_reset;
|
||||
|
||||
Optional<String> m_path;
|
||||
Gfx::Palette m_current_palette;
|
||||
Time m_last_modified_time { Time::now_monotonic() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue