UtilitiesCard WallpaperSelector: add right click to choose random

wallpaper
This commit is contained in:
Ly-sec
2025-09-01 15:15:59 +02:00
parent e3d62388f7
commit 6f78079bc5

View File

@@ -48,12 +48,15 @@ NBox {
// Wallpaper
NIconButton {
icon: "image"
tooltipText: "Open wallpaper selector"
tooltipText: "Left click: Open wallpaper selector\nRight click: Set random wallpaper"
onClicked: {
var settingsPanel = PanelService.getPanel("settingsPanel")
settingsPanel.requestedTab = SettingsPanel.Tab.WallpaperSelector
settingsPanel.open(screen)
}
onRightClicked: {
WallpaperService.setRandomWallpaper()
}
}
Item {