1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 10:37:44 +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:
networkException 2022-06-16 20:29:25 +02:00 committed by Linus Groh
parent e2d2b403e9
commit 28f4b67bdc
3 changed files with 126 additions and 6 deletions

View file

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