fix spacing and rounding issues in wallpaperpicker
This commit is contained in:
parent
83c84b6880
commit
a0de1f29c6
1 changed files with 4 additions and 16 deletions
|
|
@ -72,39 +72,27 @@ Rectangle {
|
|||
radius: Config.rounding
|
||||
border.width: 2
|
||||
border.color: Colors.base0D
|
||||
clip: true
|
||||
GridView {
|
||||
id: wallpaperLayout
|
||||
clip: true
|
||||
snapMode: GridView.SnapOneRow
|
||||
flow: GridView.FlowTopToBottom
|
||||
cellHeight: container.height
|
||||
cellWidth: container.width / 8
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
anchors.centerIn: parent
|
||||
cellWidth: container.width / 8
|
||||
anchors.fill: parent
|
||||
anchors.rightMargin: 10
|
||||
model: wallpaperList
|
||||
delegate: ClippingWrapperRectangle {
|
||||
id: wallTile
|
||||
layer.enabled: true
|
||||
layer.effect: MultiEffect {
|
||||
id: dropShadow
|
||||
source: wallTile
|
||||
shadowEnabled: true
|
||||
shadowHorizontalOffset: 10
|
||||
shadowVerticalOffset: 10
|
||||
shadowColor: "#020202"
|
||||
}
|
||||
margin: 10
|
||||
required property var modelData
|
||||
color: 'transparent'
|
||||
radius: Config.rounding - 4
|
||||
implicitWidth: wallPicker.width / 8
|
||||
implicitHeight: wallPicker.height
|
||||
child: ClippingRectangle {
|
||||
id: wpRounder
|
||||
color: 'transparent'
|
||||
radius: Config.rounding
|
||||
radius: Config.rounding / 1.5
|
||||
Image {
|
||||
id: wallpaper
|
||||
anchors.fill: parent
|
||||
|
|
|
|||
Loading…
Reference in a new issue