mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
revert #1351 - broke Qt theming
This commit is contained in:
@@ -216,8 +216,7 @@ Singleton {
|
||||
lines.push(`input_path = "${Quickshell.shellDir}/Assets/MatugenTemplates/${inputFile}"`);
|
||||
const outputPath = output.path.replace("~", homeDir);
|
||||
lines.push(`output_path = "${outputPath}"`);
|
||||
// Add postProcess only on last output
|
||||
if (app.postProcess && idx === app.outputs.length - 1) {
|
||||
if (app.postProcess) {
|
||||
const postHook = escapeTomlString(app.postProcess(mode));
|
||||
lines.push(`post_hook = "${postHook}"`);
|
||||
}
|
||||
@@ -656,4 +655,4 @@ Singleton {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -85,26 +85,8 @@ Singleton {
|
||||
"outputs": [
|
||||
{
|
||||
"path": "~/.local/share/color-schemes/noctalia.colors"
|
||||
},
|
||||
{
|
||||
"path": "~/.local/share/color-schemes/noctalia-alt.colors"
|
||||
}
|
||||
],
|
||||
"postProcess": function (mode) {
|
||||
// Apply KDE color scheme with workaround for plasma-apply-colorscheme bug
|
||||
// KDE requires different name to trigger refresh, so we alternate between two files
|
||||
const stateFile = "~/.cache/noctalia/kde-colorscheme-state";
|
||||
return `if command -v plasma-apply-colorscheme >/dev/null 2>&1; then
|
||||
mkdir -p ~/.cache/noctalia
|
||||
if [ -f "${stateFile}" ] && [ "$(cat ${stateFile})" = "alt" ]; then
|
||||
plasma-apply-colorscheme noctalia >/dev/null 2>&1
|
||||
echo "main" > ${stateFile}
|
||||
else
|
||||
plasma-apply-colorscheme noctalia-alt >/dev/null 2>&1
|
||||
echo "alt" > ${stateFile}
|
||||
fi
|
||||
fi`;
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fuzzel",
|
||||
@@ -177,11 +159,6 @@ fi`;
|
||||
"path": "~/.config/armcord",
|
||||
"requiresThemesFolder": false
|
||||
},
|
||||
{
|
||||
"name": "legcord",
|
||||
"path": "~/.config/legcord",
|
||||
"requiresThemesFolder": false
|
||||
},
|
||||
{
|
||||
"name": "equibop",
|
||||
"path": "~/.config/equibop",
|
||||
@@ -473,4 +450,4 @@ fi`;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user