Touch UI: Padding must always be scaled

This commit is contained in:
Thomas Perl 2014-10-26 23:35:19 +01:00
parent 1e87a2a3fb
commit 4680751494
2 changed files with 4 additions and 4 deletions

View file

@ -130,7 +130,7 @@ Item {
left: downloadIndicator.right
}
height: Constants.layout.padding
height: Constants.layout.padding * pgst.scalef
width: (parent.width - downloadIndicator.width) * progress
color: Constants.colors.download
}
@ -141,7 +141,7 @@ Item {
left: downloadIndicator.right
}
height: Constants.layout.padding
height: Constants.layout.padding * pgst.scalef
width: (parent.width - downloadIndicator.width) * playbackProgress
color: titleLabel.color
opacity: episodeItem.isPlaying ? 1 : .2
@ -158,7 +158,7 @@ Item {
Rectangle {
id: downloadIndicator
width: Constants.layout.padding * (downloadState == Constants.state.downloaded)
width: Constants.layout.padding * pgst.scalef * (downloadState == Constants.state.downloaded)
Behavior on width { PropertyAnimation { } }

View file

@ -34,7 +34,7 @@ ButtonArea {
}
Rectangle {
width: Constants.layout.padding * (newEpisodes > 0)
width: Constants.layout.padding * pgst.scalef * (newEpisodes > 0)
Behavior on width { PropertyAnimation { } }
anchors {