Merge pull request #723 from onelocked/main

Fix: WallpaperSelector widget panel positioning
This commit is contained in:
Lysec
2025-11-11 23:25:15 +01:00
committed by GitHub
+8 -1
View File
@@ -20,5 +20,12 @@ NIconButton {
colorFg: Color.mOnSurface
colorBorder: Color.transparent
colorBorderHover: Color.transparent
onClicked: PanelService.getPanel("wallpaperPanel", screen)?.toggle(this)
onClicked: {
var wallpaperPanel = PanelService.getPanel("wallpaperPanel", screen)
if (Settings.data.wallpaper.panelPosition === "follow_bar") {
wallpaperPanel?.toggle(this)
} else {
wallpaperPanel?.toggle()
}
}
}