Commit 2f341a0d authored by kempe's avatar kempe

Fixed image scaling and some other listitem UX

Signed-off-by: kempe's avatarkempe <l.f.kempe@gmail.com>
parent 230a2354
......@@ -8,9 +8,15 @@ ListItem {
property string stationCurrent: ""
property bool isPlaying: false
width: 400
contentHeight: Theme.itemSizeLarge
anchors {
left: parent.left
leftMargin: Theme.horizontalPageMargin
right: parent.right
rightMargin: Theme.horizontalPageMargin
}
Rectangle {
color: isPlaying ? Theme.primaryColor : "transparent"
opacity: 0.1
......@@ -18,7 +24,6 @@ ListItem {
}
Row {
anchors.fill: parent
spacing: Theme.paddingLarge
Image {
......@@ -29,7 +34,10 @@ ListItem {
fillMode: Image.PreserveAspectFit
cache: true
sourceSize.height: parent.height - 20
height: Theme.iconSizeLarge
width: Theme.iconSizeLarge
sourceSize.height: Theme.iconSizeLarge
sourceSize.width: Theme.iconSizeLarge
}
Column {
......@@ -47,6 +55,7 @@ ListItem {
truncationMode: TruncationMode.Fade
color: Theme.secondaryColor
text: stationInfo
visible: stationInfo
}
Label {
......@@ -55,6 +64,7 @@ ListItem {
truncationMode: TruncationMode.Fade
color: Theme.secondaryHighlightColor
text: stationCurrent
visible: stationCurrent
}
}
}
......
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