From 5db37d8766083803cc13bcc0c06aed6b0a2fa266 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Wed, 23 Oct 2024 20:49:56 +0500 Subject: [PATCH] Update --- .../contents/layout.js | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 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 890cf06..29404c6 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 @@ -16,16 +16,25 @@ let allDesktops = desktops(); // desktop.writeConfig("SlidePaths", "/usr/share/plasma/wallpapers,/usr/share/wallpapers"); // } -for (let i = 0; i < allDesktops.length; i++) { - let desktop = allDesktops[i]; +// for (let i = 0; i < allDesktops.length; i++) { +// let desktop = allDesktops[i]; +// +// // Add the widget to the desktop +// let widget = desktop.addWidget("luisbocanegra.desktop.wallpaper.effects"); +// +// widget.currentConfigGroup = ["General"]; +// widget.writeConfig("colorizationColor", "#1a7597"); +// widget.writeConfig("hideWidget", true); +// } - // Add the widget to the desktop - let widget = desktop.addWidget("luisbocanegra.desktop.wallpaper.effects"); +let desktop = allDesktops[0]; - widget.currentConfigGroup = ["General"]; - widget.writeConfig("colorizationColor", "#1a7597") - widget.writeConfig("hideWidget", true) -} +// Add the widget to the desktop +let widget = desktop.addWidget("luisbocanegra.desktop.wallpaper.effects"); + +widget.currentConfigGroup = ["General"]; +widget.writeConfig("colorizationColor", "#1a7597"); +widget.writeConfig("hideWidget", true); /*General*/ var panel = new Panel;