fix spacing and rounding issues in wallpaperpicker

This commit is contained in:
lucy 2026-07-31 12:50:24 +02:00
commit a0de1f29c6

View file

@ -72,7 +72,6 @@ Rectangle {
radius: Config.rounding radius: Config.rounding
border.width: 2 border.width: 2
border.color: Colors.base0D border.color: Colors.base0D
clip: true
GridView { GridView {
id: wallpaperLayout id: wallpaperLayout
clip: true clip: true
@ -80,31 +79,20 @@ Rectangle {
flow: GridView.FlowTopToBottom flow: GridView.FlowTopToBottom
cellHeight: container.height cellHeight: container.height
cellWidth: container.width / 8 cellWidth: container.width / 8
width: parent.width anchors.fill: parent
height: parent.height anchors.rightMargin: 10
anchors.centerIn: parent
model: wallpaperList model: wallpaperList
delegate: ClippingWrapperRectangle { delegate: ClippingWrapperRectangle {
id: wallTile id: wallTile
layer.enabled: true
layer.effect: MultiEffect {
id: dropShadow
source: wallTile
shadowEnabled: true
shadowHorizontalOffset: 10
shadowVerticalOffset: 10
shadowColor: "#020202"
}
margin: 10 margin: 10
required property var modelData required property var modelData
color: 'transparent' color: 'transparent'
radius: Config.rounding - 4
implicitWidth: wallPicker.width / 8 implicitWidth: wallPicker.width / 8
implicitHeight: wallPicker.height implicitHeight: wallPicker.height
child: ClippingRectangle { child: ClippingRectangle {
id: wpRounder id: wpRounder
color: 'transparent' color: 'transparent'
radius: Config.rounding radius: Config.rounding / 1.5
Image { Image {
id: wallpaper id: wallpaper
anchors.fill: parent anchors.fill: parent