From e3e0c09e72ce0ea8709ee726d676ed7f366cbaeb Mon Sep 17 00:00:00 2001 From: Sir Blob Date: Thu, 24 Sep 2026 01:35:26 +0000 Subject: [PATCH] Stretch the wallpaper grid to the full width --- shell/plugins/panels/displays/WallpaperGrid.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shell/plugins/panels/displays/WallpaperGrid.qml b/shell/plugins/panels/displays/WallpaperGrid.qml index 0c3dcb1..dc78525 100644 --- a/shell/plugins/panels/displays/WallpaperGrid.qml +++ b/shell/plugins/panels/displays/WallpaperGrid.qml @@ -43,8 +43,9 @@ Item { id: grid anchors.fill: parent clip: true - cellWidth: Style.spaceReal(120) - cellHeight: Style.spaceReal(80) + readonly property int columnCount: Math.max(1, Math.floor(width / Style.spaceReal(120))) + cellWidth: width / columnCount + cellHeight: cellWidth * 2 / 3 model: root.wallpapers delegate: Item { @@ -70,7 +71,7 @@ Item { fillMode: Image.PreserveAspectCrop asynchronous: true cache: true - sourceSize.width: Math.round(Style.spaceReal(120) * 1.5) + sourceSize.width: Math.round(grid.cellWidth * 1.5) } Rectangle {