diff options
author | Niels Weber <niels.weber@digia.com> | 2014-09-11 13:14:49 +0200 |
---|---|---|
committer | Caroline Chao <caroline.chao@digia.com> | 2014-09-11 14:31:10 +0200 |
commit | 8627b5b26719f5cc2303e6c0b5c7375231186be8 (patch) | |
tree | 3d743e1a6658a1e5e42caa74fdf1e80f5c95d037 | |
parent | 92d8c407b6411ae019723dec3499a4e380b860f1 (diff) |
Set a size for anonymous and reload pictures
Change-Id: I5d1428ae489c5d8213db8b60c592b0990ec8fbc3
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
-rw-r--r-- | qml/components/HomeScreen.qml | 14 | ||||
-rw-r--r-- | src/theme.cpp | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/qml/components/HomeScreen.qml b/qml/components/HomeScreen.qml index 86c6cc5..d2e75a9 100644 --- a/qml/components/HomeScreen.qml +++ b/qml/components/HomeScreen.qml @@ -237,6 +237,8 @@ Rectangle { anchors.right: parent.right anchors.rightMargin: Theme.margins.ten source: Theme.images.loading + sourceSize.height: Theme.sizes.reloadButtonSize + sourceSize.width: Theme.sizes.reloadButtonSize } MouseArea { anchors.fill: reloadNews @@ -249,13 +251,15 @@ Rectangle { Rectangle { color: Theme.colors.smokewhite - height: tweetArea.height + height: placeHolder.height width: window.width Image { id: placeHolder anchors.verticalCenter: parent.verticalCenter source: Theme.images.anonymous + height: Theme.sizes.twitterAvatarSize + width: Theme.sizes.twitterAvatarSize visible: avatar.status != Image.Ready } @@ -267,9 +271,9 @@ Rectangle { Item { id: tweetArea - width: parent.width - avatar.width - height: childrenRect.height - anchors.left: avatar.right + width: parent.width - placeHolder.width + height: placeHolder.height + anchors.left: placeHolder.right Text { id: userName @@ -309,7 +313,7 @@ Rectangle { anchors.bottom: parent.bottom anchors.margins: Theme.margins.ten clip: true - spacing: Theme.margins.ten + spacing: Theme.margins.fifteen model: tweetModel.model delegate: tweetDelegate diff --git a/src/theme.cpp b/src/theme.cpp index 0245e17..ed8648c 100644 --- a/src/theme.cpp +++ b/src/theme.cpp @@ -120,6 +120,8 @@ Theme::Theme(QObject *parent) m_sizes->insert(QLatin1String("ratingImageHeight"), QVariant(applyRatio(38))); m_sizes->insert(QLatin1String("ratingImageWidth"), QVariant(applyRatio(40))); m_sizes->insert(QLatin1String("infoButtonSize"), QVariant(applyRatio(140))); + m_sizes->insert(QLatin1String("reloadButtonSize"), QVariant(applyRatio(50))); + m_sizes->insert(QLatin1String("twitterAvatarSize"), QVariant(applyRatio(80))); m_images = new QQmlPropertyMap(this); m_images->insert(QLatin1String("back"), QVariant("qrc:/images/BackArrow.svg")); |