From e373fe0375a45aa2825e28c7326bed1a3cd97c65 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 17 Jun 2025 22:44:29 +1000 Subject: launcher: fix wallpaper preview colours Also disable transparency action (not impled and won't be in the near future) --- modules/launcher/Actions.qml | 1 + modules/launcher/Content.qml | 2 ++ 2 files changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/launcher/Actions.qml b/modules/launcher/Actions.qml index 9f6f52c..8df687b 100644 --- a/modules/launcher/Actions.qml +++ b/modules/launcher/Actions.qml @@ -42,6 +42,7 @@ Singleton { name: qsTr("Transparency") desc: qsTr("Change shell transparency") icon: "opacity" + disabled: true function onClicked(list: AppList): void { root.autocomplete(list, "transparency"); diff --git a/modules/launcher/Content.qml b/modules/launcher/Content.qml index b6d1056..9e08a93 100644 --- a/modules/launcher/Content.qml +++ b/modules/launcher/Content.qml @@ -81,6 +81,8 @@ Item { const currentItem = list.currentList?.currentItem; if (currentItem) { if (list.showWallpapers) { + if (currentItem.modelData.path !== Wallpapers.actualCurrent) + Wallpapers.previewColourLock = true; Wallpapers.setWallpaper(currentItem.modelData.path); root.visibilities.launcher = false; } else if (text.startsWith(Config.launcher.actionPrefix)) { -- cgit v1.2.3-freya