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
|
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
|
||||||
snapMode: GridView.SnapOneRow
|
snapMode: GridView.SnapOneRow
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue