Commit 2f341a0d authored by kempe's avatar kempe

Fixed image scaling and some other listitem UX

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