change wallpicker cell dimension logic
This commit is contained in:
parent
6f1ed99e24
commit
2f4e12b078
1 changed files with 7 additions and 8 deletions
|
|
@ -39,7 +39,7 @@ Rectangle {
|
||||||
visible: false
|
visible: false
|
||||||
exclusionMode: ExclusionMode.Ignore
|
exclusionMode: ExclusionMode.Ignore
|
||||||
keyboardFocus: WlrKeyboardFocus.OnDemand
|
keyboardFocus: WlrKeyboardFocus.OnDemand
|
||||||
implicitHeight: 300
|
implicitHeight: 250
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
anchors {
|
anchors {
|
||||||
bottom: true
|
bottom: true
|
||||||
|
|
@ -77,14 +77,13 @@ Rectangle {
|
||||||
id: wallpaperLayout
|
id: wallpaperLayout
|
||||||
clip: true
|
clip: true
|
||||||
snapMode: GridView.SnapOneRow
|
snapMode: GridView.SnapOneRow
|
||||||
anchors.fill: parent
|
|
||||||
flow: GridView.FlowTopToBottom
|
flow: GridView.FlowTopToBottom
|
||||||
width: parent.width - 10
|
cellHeight: container.height
|
||||||
height: parent.height - 10
|
cellWidth: container.width / 6
|
||||||
|
width: parent.width
|
||||||
|
height: parent.height
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
model: wallpaperList
|
model: wallpaperList
|
||||||
cellWidth: ((wallPicker.width) / 5) - 2
|
|
||||||
cellHeight: wallPicker.height
|
|
||||||
delegate: ClippingWrapperRectangle {
|
delegate: ClippingWrapperRectangle {
|
||||||
id: wallTile
|
id: wallTile
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
|
|
@ -100,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) / 5
|
implicitWidth: (wallPicker.width - wallPicker.margins.left * 2) / 6
|
||||||
implicitHeight: wallPicker.height - wallPicker.margins.bottom / 2
|
implicitHeight: wallPicker.height - wallPicker.margins.bottom / 4
|
||||||
child: ClippingRectangle {
|
child: ClippingRectangle {
|
||||||
id: wpRounder
|
id: wpRounder
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue