Files
noctalia-shell/Modules/Panels/ControlCenter/Widgets/WallpaperSelector.qml
T
Florian Boulay 107ea5698a Add screen argument to IPC wallpaper random
* Add argument to specify on which screen to apply a random wallpaper
* if `all` is provided, the old behavior is kept: a random wallpaper is
applied to all screen.
2026-02-05 13:22:08 +01:00

16 lines
401 B
QML

import QtQuick.Layouts
import Quickshell
import qs.Commons
import qs.Services.UI
import qs.Widgets
NIconButtonHot {
property ShellScreen screen
enabled: Settings.data.wallpaper.enabled
icon: "wallpaper-selector"
tooltipText: I18n.tr("wallpaper.panel.title")
onClicked: PanelService.getPanel("wallpaperPanel", screen)?.toggle()
onRightClicked: WallpaperService.setRandomWallpaper(null)
}