mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
107ea5698a
* 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.
16 lines
401 B
QML
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)
|
|
}
|