Commit aab32e6d authored by Camilo higuita's avatar Camilo higuita

fixes and stick with kirigami actiontoolbars

parent 22a6b2ce
.import "../db/Queries.js" as Q
.import "../utils/Player.js" as Player
function rootWidth() function rootWidth()
{ {
return root.width; return root.width;
......
...@@ -48,7 +48,7 @@ SwipeDelegate ...@@ -48,7 +48,7 @@ SwipeDelegate
swipe.enabled: false swipe.enabled: false
focus: true focus: true
focusPolicy: Qt.StrongFocus focusPolicy: Qt.StrongFocus
hoverEnabled: true hoverEnabled: !isMobile
signal play() signal play()
signal rightClicked() signal rightClicked()
...@@ -61,11 +61,12 @@ SwipeDelegate ...@@ -61,11 +61,12 @@ SwipeDelegate
background: Rectangle background: Rectangle
{ {
height: delegateRoot.height height: delegateRoot.height
color: isCurrentListItem ? highlightColor : (trackMood.length > 0 ? Qt.tint(bgColor, Qt.rgba(Qt.lighter(trackMood, 1.3).r, color: isCurrentListItem || hovered ? highlightColor : (trackMood.length > 0 ? Qt.tint(bgColor, Qt.rgba(Qt.lighter(trackMood, 1.3).r,
Qt.lighter(trackMood, 1.3).g, Qt.lighter(trackMood, 1.3).g,
Qt.lighter(trackMood, 1.3).b, Qt.lighter(trackMood, 1.3).b,
0.3 ) ): 0.3 ) ):
index % 2 === 0 ? Qt.lighter(bgColor) : bgColor) index % 2 === 0 ? Qt.lighter(bgColor) : bgColor)
opacity: hovered ? 0.3 : 1
} }
...@@ -290,8 +291,8 @@ SwipeDelegate ...@@ -290,8 +291,8 @@ SwipeDelegate
Layout.alignment: Qt.AlignLeft || Qt.AlignBottom Layout.alignment: Qt.AlignLeft || Qt.AlignBottom
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter
text: model.title text: model.title
font.bold: !sameAlbum // font.bold: !sameAlbum
font.weight: Font.Bold font.weight: Font.Regular
elide: Text.ElideRight elide: Text.ElideRight
font.pointSize: fontSizes.default font.pointSize: fontSizes.default
color: labelColor color: labelColor
...@@ -313,6 +314,7 @@ SwipeDelegate ...@@ -313,6 +314,7 @@ SwipeDelegate
elide: Text.ElideRight elide: Text.ElideRight
font.pointSize: fontSizes.medium font.pointSize: fontSizes.medium
color: labelColor color: labelColor
opacity: hovered ? 0.8 : 0.6
} }
......
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