From 3c2f109a7f3a003a19889de688f69699ddbdc628 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Sun, 22 Dec 2024 22:15:09 +0500 Subject: [PATCH] Update --- .../contents/layout.js | 36 ++++++++++++++----- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js b/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js index 4b8825a..017639d 100644 --- a/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js +++ b/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js @@ -35,7 +35,7 @@ for(j = 0; j < desktopsArray.length; j++) { // // widget.currentConfigGroup = ["General"]; // widget.writeConfig("colorizationColor", "#1a7597"); -// widget.writeConfig("hideWidget", true); +// widget.writeConfig("hideWidget", "true"); // } @@ -340,17 +340,35 @@ Plugins.writeEntry("diminactiveEnabled", "true"); Plugins.writeEntry("dimscreenEnabled", "true"); Plugins.writeEntry("fadedesktopEnabled", "true"); -Plugins.writeEntry("kinetic_maximizeEnabled", "false"); -Plugins.writeEntry("maximizeEnabled", "true"); -Plugins.writeEntry("kinetic_fadingpopupsEnabled", "false"); -Plugins.writeEntry("fadingpopupsEnabled", "true"); +let kinetic = true; -Plugins.writeEntry("kinetic_scaleEnabled", "false"); -Plugins.writeEntry("scaleEnabled", "true"); +if (kinetic) { + Plugins.writeEntry("kinetic_maximizeEnabled", "true"); + Plugins.writeEntry("maximizeEnabled", "false"); + + Plugins.writeEntry("kinetic_fadingpopupsEnabled", "true"); + Plugins.writeEntry("fadingpopupsEnabled", "false"); + + Plugins.writeEntry("kinetic_scaleEnabled", "true"); + Plugins.writeEntry("scaleEnabled", "false"); + + Plugins.writeEntry("kinetic_squashEnabled", "true"); + Plugins.writeEntry("squashEnabled", "false"); +} else { + Plugins.writeEntry("kinetic_maximizeEnabled", "false"); + Plugins.writeEntry("maximizeEnabled", "true"); + + Plugins.writeEntry("kinetic_fadingpopupsEnabled", "false"); + Plugins.writeEntry("fadingpopupsEnabled", "true"); + + Plugins.writeEntry("kinetic_scaleEnabled", "false"); + Plugins.writeEntry("scaleEnabled", "true"); + + Plugins.writeEntry("kinetic_squashEnabled", "false"); + Plugins.writeEntry("squashEnabled", "true"); +} -Plugins.writeEntry("kinetic_squashEnabled", "false"); -Plugins.writeEntry("squashEnabled", "true"); Plugins.writeEntry("kwin4_effect_cornersshaderEnabled", "true"); Plugins.writeEntry("kwin4_effect_fadedesktopEnabled", "true");