Touch UI: Padding must always be scaled
This commit is contained in:
parent
1e87a2a3fb
commit
4680751494
2 changed files with 4 additions and 4 deletions
|
@ -130,7 +130,7 @@ Item {
|
||||||
left: downloadIndicator.right
|
left: downloadIndicator.right
|
||||||
}
|
}
|
||||||
|
|
||||||
height: Constants.layout.padding
|
height: Constants.layout.padding * pgst.scalef
|
||||||
width: (parent.width - downloadIndicator.width) * progress
|
width: (parent.width - downloadIndicator.width) * progress
|
||||||
color: Constants.colors.download
|
color: Constants.colors.download
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ Item {
|
||||||
left: downloadIndicator.right
|
left: downloadIndicator.right
|
||||||
}
|
}
|
||||||
|
|
||||||
height: Constants.layout.padding
|
height: Constants.layout.padding * pgst.scalef
|
||||||
width: (parent.width - downloadIndicator.width) * playbackProgress
|
width: (parent.width - downloadIndicator.width) * playbackProgress
|
||||||
color: titleLabel.color
|
color: titleLabel.color
|
||||||
opacity: episodeItem.isPlaying ? 1 : .2
|
opacity: episodeItem.isPlaying ? 1 : .2
|
||||||
|
@ -158,7 +158,7 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: downloadIndicator
|
id: downloadIndicator
|
||||||
|
|
||||||
width: Constants.layout.padding * (downloadState == Constants.state.downloaded)
|
width: Constants.layout.padding * pgst.scalef * (downloadState == Constants.state.downloaded)
|
||||||
|
|
||||||
Behavior on width { PropertyAnimation { } }
|
Behavior on width { PropertyAnimation { } }
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ ButtonArea {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: Constants.layout.padding * (newEpisodes > 0)
|
width: Constants.layout.padding * pgst.scalef * (newEpisodes > 0)
|
||||||
Behavior on width { PropertyAnimation { } }
|
Behavior on width { PropertyAnimation { } }
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue