From 4680751494b5fcbc2fd29f179d6b09751a27801d Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sun, 26 Oct 2014 23:35:19 +0100 Subject: [PATCH] Touch UI: Padding must always be scaled --- touch/EpisodeItem.qml | 6 +++--- touch/PodcastItem.qml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/touch/EpisodeItem.qml b/touch/EpisodeItem.qml index 03512f1..86da2e9 100644 --- a/touch/EpisodeItem.qml +++ b/touch/EpisodeItem.qml @@ -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 { } } diff --git a/touch/PodcastItem.qml b/touch/PodcastItem.qml index fd2dc6f..91c15d5 100644 --- a/touch/PodcastItem.qml +++ b/touch/PodcastItem.qml @@ -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 {