change wallpicker cell dimension logic

This commit is contained in:
lucy 2026-07-27 17:00:02 +02:00
commit 2f4e12b078

View file

@ -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'