Bar: New widget "Wallpaper Selector" to open the selector directly.

This commit is contained in:
LemmyCook
2025-09-19 11:24:46 -04:00
parent 78df416bc7
commit 590708da57
2 changed files with 27 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import QtQuick
import QtQuick.Layouts
import Quickshell
import qs.Commons
import qs.Services
import qs.Widgets
NIconButton {
id: root
property ShellScreen screen
property real scaling: 1.0
baseSize: Style.capsuleHeight
compact: (Settings.data.bar.density === "compact")
icon: "wallpaper-selector"
tooltipText: "Open wallpaper selector"
colorBg: (Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent)
colorFg: Color.mOnSurface
colorBorder: Color.transparent
colorBorderHover: Color.transparent
onClicked: PanelService.getPanel("wallpaperSelector")?.toggle(this)
}
+4
View File
@@ -33,6 +33,7 @@ Singleton {
"Tray": trayComponent,
"Volume": volumeComponent,
"WiFi": wiFiComponent,
"WallpaperSelector": wallpaperSelectorComponent,
"Workspace": workspaceComponent
})
@@ -177,6 +178,9 @@ Singleton {
property Component wiFiComponent: Component {
WiFi {}
}
property Component wallpaperSelectorComponent: Component {
WallpaperSelector {}
}
property Component workspaceComponent: Component {
Workspace {}
}