From 0d0b9a21f2e76dbbef4611176d721251ac504f84 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Mon, 29 Sep 2025 09:25:45 -0400 Subject: [PATCH] Wallpaper Selector: added a shortcut to the wallpaper settings in the top bar. --- Modules/Background/Background.qml | 8 ++------ Modules/Wallpaper/WallpaperPanel.qml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Modules/Background/Background.qml b/Modules/Background/Background.qml index a83aed58..3cd5661c 100644 --- a/Modules/Background/Background.qml +++ b/Modules/Background/Background.qml @@ -224,9 +224,7 @@ Variants { easing.type: Easing.InOutCubic onFinished: { // Swap images after transition completes - if (currentWallpaper.source !== "") { - currentWallpaper.source = "" - } + currentWallpaper.source = "" currentWallpaper.source = nextWallpaper.source nextWallpaper.source = "" transitionProgress = 0.0 @@ -249,9 +247,7 @@ Variants { function setWallpaperImmediate(source) { transitionAnimation.stop() transitionProgress = 0.0 - if (currentWallpaper.source !== "") { - currentWallpaper.source = "" - } + currentWallpaper.source = "" currentWallpaper.source = source nextWallpaper.source = "" } diff --git a/Modules/Wallpaper/WallpaperPanel.qml b/Modules/Wallpaper/WallpaperPanel.qml index 6266aa2b..4a8f8148 100644 --- a/Modules/Wallpaper/WallpaperPanel.qml +++ b/Modules/Wallpaper/WallpaperPanel.qml @@ -4,6 +4,7 @@ import QtQuick.Controls import Quickshell import Quickshell.Wayland import qs.Commons +import qs.Modules.Settings import qs.Services import qs.Widgets import "../../Helpers/FuzzySort.js" as FuzzySort @@ -63,6 +64,17 @@ NPanel { Layout.fillWidth: true } + NIconButton { + icon: "settings" + tooltipText: I18n.tr("settings.wallpaper.settings.section.label") + baseSize: Style.baseWidgetSize * 0.8 + onClicked: { + var settingsPanel = PanelService.getPanel("settingsPanel") + settingsPanel.requestedTab = SettingsPanel.Tab.Wallpaper + settingsPanel.open() + } + } + NIconButton { icon: "refresh" tooltipText: I18n.tr("tooltips.refresh-wallpaper-list")