From 8f87b85026e36997bd875a267bdeac41c30b2cb3 Mon Sep 17 00:00:00 2001 From: molan-git <59296158+molan-git@users.noreply.github.com> Date: Mon, 4 May 2020 11:48:29 +0200 Subject: [PATCH 1/2] Icon alignment fixes --- qml/pages/Conversation.qml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/qml/pages/Conversation.qml b/qml/pages/Conversation.qml index 5da692c..3de2497 100644 --- a/qml/pages/Conversation.qml +++ b/qml/pages/Conversation.qml @@ -209,9 +209,9 @@ Page { 0) == '#') ? description + ' ' : '' height: Math.max(270, Math.min(900, implicitHeight)) //height: implicitHeight - horizontalAlignment: Text.AlignLeft + horizontalAlignment: Text.AlignLeft placeholderText: qsTr("What's on your mind?") - font.pixelSize: Theme.fontSizeSmall + font.pixelSize: Theme.fontSizeSmall EnterKey.onClicked: { //tweet() } @@ -306,7 +306,8 @@ Page { id: btnContentWarning anchors { - verticalCenter: privacy.verticalCenter + top: toot.bottom + topMargin: -Theme.paddingSmall * 1.5 left: parent.left leftMargin: Theme.paddingMedium } @@ -318,7 +319,8 @@ Page { id: btnAddImage enabled: mediaModel.count < 4 anchors { - verticalCenter: privacy.verticalCenter + top: toot.bottom + topMargin: -Theme.paddingSmall * 1.5 left: btnContentWarning.right leftMargin: Theme.paddingSmall } @@ -364,7 +366,7 @@ Page { id: privacy anchors { top: toot.bottom - topMargin: -Theme.paddingSmall * 2 + topMargin: -Theme.paddingSmall * 1.5 left: btnAddImage.right right: btnSend.left } @@ -390,6 +392,7 @@ Page { + (pressed ? Theme.highlightColor : Theme.primaryColor) anchors { top: toot.bottom + topMargin: -Theme.paddingSmall * 2 right: parent.right rightMargin: Theme.paddingSmall } From 7b0ff5f760da04397dc077c2169cfb5ae3bd62b6 Mon Sep 17 00:00:00 2001 From: molan-git Date: Mon, 4 May 2020 14:55:52 +0200 Subject: [PATCH 2/2] Fix anchors text toot --- qml/pages/Conversation.qml | 8 ++++---- translations/harbour-tooter-it.ts | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/qml/pages/Conversation.qml b/qml/pages/Conversation.qml index 3de2497..1f02857 100644 --- a/qml/pages/Conversation.qml +++ b/qml/pages/Conversation.qml @@ -157,7 +157,6 @@ Page { Rectangle { id: progressBar width: toot.text.length ? panel.width * (toot.text.length / tootMaxChar) : 0 - height: Theme.itemSizeSmall * 0.05 color: Theme.highlightBackgroundColor opacity: 0.7 @@ -179,6 +178,7 @@ Page { } autoScrollEnabled: true labelVisible: false + font.pixelSize: Theme.fontSizeSmall placeholderText: qsTr("Write your warning here") placeholderColor: palette.highlightColor color: palette.highlightColor @@ -198,8 +198,8 @@ Page { top: warningContent.bottom topMargin: Theme.paddingMedium left: parent.left - right: parent.right - rightMargin: Theme.paddingMedium + right: parent.right + rightMargin: Theme.paddingLarge * 2 } autoScrollEnabled: true labelVisible: false @@ -392,7 +392,7 @@ Page { + (pressed ? Theme.highlightColor : Theme.primaryColor) anchors { top: toot.bottom - topMargin: -Theme.paddingSmall * 2 + topMargin: -Theme.paddingSmall * 1.5 right: parent.right rightMargin: Theme.paddingSmall } diff --git a/translations/harbour-tooter-it.ts b/translations/harbour-tooter-it.ts index 7f50712..5df1b51 100644 --- a/translations/harbour-tooter-it.ts +++ b/translations/harbour-tooter-it.ts @@ -43,37 +43,37 @@ A cosa stai pensando? - + Delete Elimina - + Public Pubblico - + Unlisted Non elencato - + Followers-only Solo ai seguaci - + Direct Diretto - + Emojis Emojis - + Tap to insert Tap per inserire