fix scheme variants
This commit is contained in:
@@ -26,7 +26,7 @@ Searcher {
|
|||||||
description: qsTr("Pastel palette with a low chroma.")
|
description: qsTr("Pastel palette with a low chroma.")
|
||||||
icon: "android"
|
icon: "android"
|
||||||
name: qsTr("Tonal Spot")
|
name: qsTr("Tonal Spot")
|
||||||
variant: "tonalspot"
|
variant: "tonal-spot"
|
||||||
},
|
},
|
||||||
Variant {
|
Variant {
|
||||||
description: qsTr("Hue-shifted, artistic or playful colors.")
|
description: qsTr("Hue-shifted, artistic or playful colors.")
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ SettingsPage {
|
|||||||
MenuItem {
|
MenuItem {
|
||||||
icon: "gradient"
|
icon: "gradient"
|
||||||
text: qsTr("Tonal spot")
|
text: qsTr("Tonal spot")
|
||||||
value: "tonalSpot"
|
value: "tonal-spot"
|
||||||
},
|
},
|
||||||
MenuItem {
|
MenuItem {
|
||||||
icon: "target"
|
icon: "target"
|
||||||
@@ -138,7 +138,7 @@ SettingsPage {
|
|||||||
MenuItem {
|
MenuItem {
|
||||||
icon: "nutrition"
|
icon: "nutrition"
|
||||||
text: qsTr("Fruit salad")
|
text: qsTr("Fruit salad")
|
||||||
value: "fruitSalad"
|
value: "fruit-salad"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -146,12 +146,7 @@ SettingsPage {
|
|||||||
Config.colors.schemeType = item.value;
|
Config.colors.schemeType = item.value;
|
||||||
Config.save();
|
Config.save();
|
||||||
|
|
||||||
if (item.value === "tonalSpot")
|
Quickshell.execDetached(["zshell-cli", "scheme", "generate", "--scheme", item.value]);
|
||||||
Quickshell.execDetached(["zshell-cli", "scheme", "generate", "--scheme", "tonal-spot"]);
|
|
||||||
else if (item.value === "fruitSalad")
|
|
||||||
Quickshell.execDetached(["zshell-cli", "scheme", "generate", "--scheme", "fruit-salad"]);
|
|
||||||
else
|
|
||||||
Quickshell.execDetached(["zshell-cli", "scheme", "generate", "--scheme", item.value]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user