mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +00:00
homescreens/halcyon: Fix gridview alignment, rename file to be more descriptive
This commit is contained in:
parent
02bcf78742
commit
4f3b9a1fae
3 changed files with 4 additions and 4 deletions
|
|
@ -45,6 +45,6 @@ QQC2.AbstractButton {
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
id: hoverHandler
|
id: hoverHandler
|
||||||
acceptedDevices: PointerDevice.Mouse
|
acceptedDevices: PointerDevice.Mouse
|
||||||
acceptedPointerTypes: PointerDevice.Generic
|
acceptedPointerTypes: PointerDevice.GenericPointer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,12 +73,12 @@ GridView {
|
||||||
|
|
||||||
delegate: MobileShell.BaseItem {
|
delegate: MobileShell.BaseItem {
|
||||||
id: baseItem
|
id: baseItem
|
||||||
readonly property bool isLeftColumn: !root.twoColumn || (root.count % model.index !== 0)
|
readonly property bool isLeftColumn: !root.twoColumn || ((model.index % 2) === 0)
|
||||||
readonly property bool isRightColumn: !root.twoColumn || (root.count % model.index === 0)
|
readonly property bool isRightColumn: !root.twoColumn || ((model.index % 2) !== 0)
|
||||||
leftPadding: isLeftColumn ? root.leftMargin : 0
|
leftPadding: isLeftColumn ? root.leftMargin : 0
|
||||||
rightPadding: isRightColumn ? root.rightMargin : 0
|
rightPadding: isRightColumn ? root.rightMargin : 0
|
||||||
|
|
||||||
contentItem: DrawerListDelegate {
|
contentItem: FavoritesAppDelegate {
|
||||||
implicitWidth: root.cellWidth - (baseItem.isLeftColumn ? root.leftMargin : 0) - (baseItem.isRightColumn ? root.rightMargin : 0)
|
implicitWidth: root.cellWidth - (baseItem.isLeftColumn ? root.leftMargin : 0) - (baseItem.isRightColumn ? root.rightMargin : 0)
|
||||||
implicitHeight: visible ? root.cellHeight : 0
|
implicitHeight: visible ? root.cellHeight : 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue