diff --git a/modules/wallpaper/WallpaperPicker.qml b/modules/wallpaper/WallpaperPicker.qml index 4bff440..3ad644e 100644 --- a/modules/wallpaper/WallpaperPicker.qml +++ b/modules/wallpaper/WallpaperPicker.qml @@ -39,7 +39,7 @@ Rectangle { visible: false exclusionMode: ExclusionMode.Ignore keyboardFocus: WlrKeyboardFocus.OnDemand - implicitHeight: 300 + implicitHeight: 250 color: 'transparent' anchors { bottom: true @@ -77,14 +77,13 @@ Rectangle { id: wallpaperLayout clip: true snapMode: GridView.SnapOneRow - anchors.fill: parent flow: GridView.FlowTopToBottom - width: parent.width - 10 - height: parent.height - 10 + cellHeight: container.height + cellWidth: container.width / 6 + width: parent.width + height: parent.height anchors.centerIn: parent model: wallpaperList - cellWidth: ((wallPicker.width) / 5) - 2 - cellHeight: wallPicker.height delegate: ClippingWrapperRectangle { id: wallTile layer.enabled: true @@ -100,8 +99,8 @@ Rectangle { required property var modelData color: 'transparent' radius: Config.rounding - 4 - implicitWidth: (wallPicker.width - wallPicker.margins.left * 2) / 5 - implicitHeight: wallPicker.height - wallPicker.margins.bottom / 2 + implicitWidth: (wallPicker.width - wallPicker.margins.left * 2) / 6 + implicitHeight: wallPicker.height - wallPicker.margins.bottom / 4 child: ClippingRectangle { id: wpRounder color: 'transparent'