diff options
author | networkException <git@nwex.de> | 2022-06-16 20:29:25 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-17 19:46:30 +0100 |
commit | 28f4b67bdccadbb61af1ea514501a930bef1658b (patch) | |
tree | ec036c979ef7f600b7ec9e5686f8cd33bf2d097c /Userland/Applications/ThemeEditor/ThemeEditor.gml | |
parent | e2d2b403e9264bb86062cc7f3711390d8c082650 (diff) | |
download | serenity-28f4b67bdccadbb61af1ea514501a930bef1658b.zip |
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.
Diffstat (limited to 'Userland/Applications/ThemeEditor/ThemeEditor.gml')
-rw-r--r-- | Userland/Applications/ThemeEditor/ThemeEditor.gml | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/Userland/Applications/ThemeEditor/ThemeEditor.gml b/Userland/Applications/ThemeEditor/ThemeEditor.gml index 36d6f48bab..01fec60bad 100644 --- a/Userland/Applications/ThemeEditor/ThemeEditor.gml +++ b/Userland/Applications/ThemeEditor/ThemeEditor.gml @@ -1,13 +1,42 @@ @GUI::Widget { - layout: @GUI::HorizontalBoxLayout {} + layout: @GUI::VerticalBoxLayout {} fill_with_background_color: true - @GUI::Frame { + @GUI::Widget { layout: @GUI::HorizontalBoxLayout {} - name: "preview_frame" + + @GUI::Frame { + layout: @GUI::HorizontalBoxLayout {} + name: "preview_frame" + } + + @GUI::TabWidget { + name: "property_tabs" + } } - @GUI::TabWidget { - name: "property_tabs" + @GUI::Widget { + name: "theme_override_controls" + layout: @GUI::HorizontalBoxLayout { + margins: [ 0, 4 ] + } + + fixed_height: 30 + + @GUI::Layout::Spacer {} + + @GUI::Button { + name: "reset" + text: "Reset to Previous System Theme" + enabled: false + fixed_width: 190 + } + + @GUI::Button { + name: "apply" + text: "Apply as System Theme" + enabled: false + fixed_width: 140 + } } } |