mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
committed by
Linus Groh
parent
e2d2b403e9
commit
28f4b67bdc
Notes:
sideshowbarker
2024-07-17 10:06:37 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/28f4b67bdc Pull-request: https://github.com/SerenityOS/serenity/pull/14305 Reviewed-by: https://github.com/linusg ✅
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user