Commit 73c62114 authored by Alexander Stippich's avatar Alexander Stippich
Browse files

replace view selector delegates with kirigami

parent 9fc37807
......@@ -57,8 +57,6 @@ Item {
property int gridDelegateSize: 170
property int viewSelectorDelegateHeight: 24
property int headerToolbarHeight: 48
property int footerToolbarHeight: 30
......
......@@ -202,15 +202,15 @@ FocusScope {
visible: emptyVisible.visible
Layout.alignment: Qt.AlignHCenter
width: elisaTheme.gridDelegateWidth * 5
height: elisaTheme.gridDelegateWidth * 5
width: elisaTheme.gridDelegateSize
height: elisaTheme.gridDelegateSize
source: elisaTheme.playlistIcon
opacity: 0.25
sourceSize {
width: elisaTheme.viewSelectorDelegateHeight * 5
height: elisaTheme.viewSelectorDelegateHeight * 5
width: elisaTheme.gridDelegateSize
height: elisaTheme.gridDelegateSize
}
}
......
......@@ -70,7 +70,7 @@ FocusScope {
delegate: ViewSelectorDelegate {
id: entry
height: Math.round(elisaTheme.viewSelectorDelegateHeight * 1.4)
height: Kirigami.Units.iconSizes.smallMedium + 3 * Kirigami.Units.smallSpacing
width: viewModeView.width
focus: true
......@@ -136,7 +136,8 @@ FocusScope {
PropertyChanges {
target: rootFocusScope
textOpacity: 0
implicitWidth: elisaTheme.viewSelectorDelegateHeight + 2 * Kirigami.Units.largeSpacing
implicitWidth: Kirigami.Units.iconSizes.smallMedium + 3 * Kirigami.Units.smallSpacing
}
}
]
......
......@@ -100,12 +100,12 @@ FocusScope {
left: parent.left
}
height: elisaTheme.viewSelectorDelegateHeight
width: elisaTheme.viewSelectorDelegateHeight
height: Kirigami.Units.iconSizes.smallMedium
width: Kirigami.Units.iconSizes.smallMedium
sourceSize {
width: elisaTheme.viewSelectorDelegateHeight
height: elisaTheme.viewSelectorDelegateHeight
width: Kirigami.Units.iconSizes.smallMedium
height: Kirigami.Units.iconSizes.smallMedium
}
source: model.image
......
Markdown is supported
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