~blue-shell-next/koko/master

« back to all changes in this revision

Viewing changes to qml/AlbumView.qml

  • Committer: Marco Martin
  • Date: 2018-12-17 16:29:01 UTC
  • Revision ID: git-v1:bc1f9194b6341bd63402672a1fb015f52e77ed4e
iconsĀ sizeĀ configurable

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        }
110
110
    }
111
111
 
112
 
    leftPadding: (page.width - Math.floor(page.width / gridView.cellWidth) * gridView.cellWidth)/2
113
 
    rightPadding: leftPadding
114
 
 
115
112
    ShareDialog {
116
113
        id: shareMenu
117
114
 
144
141
 
145
142
        keyNavigationEnabled: true
146
143
 
147
 
        property real widthToApproximate: (applicationWindow().wideScreen ? applicationWindow().pageStack.defaultColumnWidth : page.width) - (Kirigami.Settings.isMobile ? Kirigami.Units.gridUnit : 0)
148
 
 
149
 
        cellWidth: widthToApproximate/Math.round(widthToApproximate/Kirigami.Units.iconSizes.huge)
150
 
 
151
 
        cellHeight: cellWidth
152
 
        
153
 
        highlight: Rectangle { color: Kirigami.Theme.highlightColor}
 
144
        property real widthToApproximate: (applicationWindow().wideScreen ? applicationWindow().pageStack.defaultColumnWidth : page.width) - (1||Kirigami.Settings.isMobile ? Kirigami.Units.gridUnit : 0)
 
145
 
 
146
        cellWidth: Math.floor(width/Math.floor(width/(kokoConfig.iconSize + Kirigami.Units.largeSpacing * 2)))
 
147
 
 
148
        cellHeight: kokoConfig.iconSize + Kirigami.Units.largeSpacing * 2
 
149
 
 
150
        highlightMoveDuration: 0
 
151
        highlight: Item {
 
152
            Rectangle {
 
153
                anchors.centerIn: parent
 
154
                width: Math.min(parent.width, parent.height)
 
155
                height: width
 
156
                color: Qt.rgba(Kirigami.Theme.highlightColor.r, Kirigami.Theme.highlightColor.g, Kirigami.Theme.highlightColor.b, 0.3)
 
157
                border.color: Kirigami.Theme.highlightColor
 
158
                radius: 2
 
159
            }
 
160
        }
154
161
        
155
162
        delegate: AlbumDelegate {}
156
163