Commit 4f3b9a1f authored by Devin Lin's avatar Devin Lin 🎨
Browse files

homescreens/halcyon: Fix gridview alignment, rename file to be more descriptive

parent 02bcf787
Pipeline #196728 passed with stage
in 2 minutes and 1 second
......@@ -45,6 +45,6 @@ QQC2.AbstractButton {
HoverHandler {
id: hoverHandler
acceptedDevices: PointerDevice.Mouse
acceptedPointerTypes: PointerDevice.Generic
acceptedPointerTypes: PointerDevice.GenericPointer
}
}
......@@ -73,12 +73,12 @@ GridView {
delegate: MobileShell.BaseItem {
id: baseItem
readonly property bool isLeftColumn: !root.twoColumn || (root.count % model.index !== 0)
readonly property bool isRightColumn: !root.twoColumn || (root.count % model.index === 0)
readonly property bool isLeftColumn: !root.twoColumn || ((model.index % 2) === 0)
readonly property bool isRightColumn: !root.twoColumn || ((model.index % 2) !== 0)
leftPadding: isLeftColumn ? root.leftMargin : 0
rightPadding: isRightColumn ? root.rightMargin : 0
contentItem: DrawerListDelegate {
contentItem: FavoritesAppDelegate {
implicitWidth: root.cellWidth - (baseItem.isLeftColumn ? root.leftMargin : 0) - (baseItem.isRightColumn ? root.rightMargin : 0)
implicitHeight: visible ? root.cellHeight : 0
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment