fix wallpaper picker spacing

This commit is contained in:
lucy 2026-07-28 09:01:27 +02:00
commit 83c84b6880

View file

@ -39,7 +39,7 @@ Rectangle {
visible: false visible: false
exclusionMode: ExclusionMode.Ignore exclusionMode: ExclusionMode.Ignore
keyboardFocus: WlrKeyboardFocus.OnDemand keyboardFocus: WlrKeyboardFocus.OnDemand
implicitHeight: 250 implicitHeight: main.screenHeight / 8
color: 'transparent' color: 'transparent'
anchors { anchors {
bottom: true bottom: true
@ -79,7 +79,7 @@ Rectangle {
snapMode: GridView.SnapOneRow snapMode: GridView.SnapOneRow
flow: GridView.FlowTopToBottom flow: GridView.FlowTopToBottom
cellHeight: container.height cellHeight: container.height
cellWidth: container.width / 6 cellWidth: container.width / 8
width: parent.width width: parent.width
height: parent.height height: parent.height
anchors.centerIn: parent anchors.centerIn: parent
@ -99,8 +99,8 @@ Rectangle {
required property var modelData required property var modelData
color: 'transparent' color: 'transparent'
radius: Config.rounding - 4 radius: Config.rounding - 4
implicitWidth: (wallPicker.width - wallPicker.margins.left * 2) / 6 implicitWidth: wallPicker.width / 8
implicitHeight: wallPicker.height - wallPicker.margins.bottom / 4 implicitHeight: wallPicker.height
child: ClippingRectangle { child: ClippingRectangle {
id: wpRounder id: wpRounder
color: 'transparent' color: 'transparent'