From 95b0ddef8e2d2c5c2e96dded7b4587d133b8b491 Mon Sep 17 00:00:00 2001 From: John Gibbon Date: Wed, 18 Nov 2020 10:27:48 +0100 Subject: [PATCH] align page header image; use space for text when image is further down --- .../chatInformationPage/ChatInformationPageContent.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qml/components/chatInformationPage/ChatInformationPageContent.qml b/qml/components/chatInformationPage/ChatInformationPageContent.qml index 8f60375..c340548 100644 --- a/qml/components/chatInformationPage/ChatInformationPageContent.qml +++ b/qml/components/chatInformationPage/ChatInformationPageContent.qml @@ -177,8 +177,7 @@ SilicaFlickable { - Component.onCompleted: { - console.log("completed chatinformationpage"); + Component.onCompleted: {7 initializePage(); } @@ -245,7 +244,7 @@ SilicaFlickable { property int maxDimension: Screen.width / 2 property int minX: Theme.horizontalPageMargin property int maxX: (chatInformationPage.width - maxDimension)/2 - property int minY: (parent.height - minDimension)/2 + property int minY: Theme.paddingSmall//(parent.height - minDimension)/2 property int maxY: parent.height property double tweenFactor: { if(!hasImage) { @@ -284,7 +283,7 @@ SilicaFlickable { } // PageHeader changes the html base path: property url emojiBase: "../js/emoji/" - leftMargin: imageContainer.minDimension + Theme.horizontalPageMargin + Theme.paddingMedium + leftMargin: imageContainer.getEased((imageContainer.minDimension + Theme.paddingMedium), 0, imageContainer.tweenFactor) + Theme.horizontalPageMargin title: chatInformationPage.chatInformation.title !== "" ? Emoji.emojify(chatInformationPage.chatInformation.title, Theme.fontSizeLarge, emojiBase) : qsTr("Unknown") description: chatInformationPage.isPrivateChat ? ("@"+(chatInformationPage.privateChatUserInformation.username || chatInformationPage.chatPartnerGroupId)) : "" }