Use rectangle indicator instead of left-bar indicator
This commit is contained in:
parent
d4ca82e6d3
commit
953905ba3b
3 changed files with 51 additions and 32 deletions
|
@ -33,19 +33,6 @@ ButtonArea {
|
|||
right: parent.right
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
width: Constants.layout.padding * pgst.scalef * (newEpisodes > 0)
|
||||
Behavior on width { PropertyAnimation { } }
|
||||
|
||||
anchors {
|
||||
top: cover.top
|
||||
bottom: cover.bottom
|
||||
left: parent.left
|
||||
}
|
||||
|
||||
color: Constants.colors.fresh
|
||||
}
|
||||
|
||||
CoverArt {
|
||||
id: cover
|
||||
visible: !updating
|
||||
|
@ -85,7 +72,7 @@ ButtonArea {
|
|||
PLabel {
|
||||
id: downloadsLabel
|
||||
anchors {
|
||||
right: parent.right
|
||||
right: newEpisodesIndicator.enabled ? newEpisodesIndicator.left : parent.right
|
||||
rightMargin: Constants.layout.padding * pgst.scalef
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
@ -93,4 +80,10 @@ ButtonArea {
|
|||
text: downloaded ? downloaded : ''
|
||||
color: Constants.colors.text
|
||||
}
|
||||
|
||||
RectangleIndicator {
|
||||
id: newEpisodesIndicator
|
||||
enabled: newEpisodes > 0
|
||||
color: Constants.colors.fresh
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue