aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/appearance/Udt.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/appearance/Udt.qml')
-rw-r--r--desktop/modules/appearance/Udt.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/modules/appearance/Udt.qml b/desktop/modules/appearance/Udt.qml
index 98fbba7..9ba609f 100644
--- a/desktop/modules/appearance/Udt.qml
+++ b/desktop/modules/appearance/Udt.qml
@@ -33,6 +33,10 @@ Singleton {
property bool applying: false
signal applied(string scheme, bool ok, string message)
+ // A scheme picked on the page, staged until Apply, like a wallpaper.
+ property string pending: ""
+ readonly property bool dirty: pending !== "" && pending !== current
+
// A scheme is two files: <name>.conf holds colours under the scheme's own
// names, roles-<name>.conf says what each colour is for. Resolving a role
// means looking its value up as a key in the first file.
@@ -146,6 +150,7 @@ Singleton {
property string scheme: ""
onExited: code => {
root.applying = false;
+ if (code === 0) root.pending = "";
root.applied(applyProc.scheme, code === 0,
code === 0 ? "" : `install.sh exited ${code}, its output is in the steps window`);
}