Merge pull request #201 from jgibbon/feature/about-for-initialization
Add menu for "About" to InitializationPage
This commit is contained in:
commit
87854b28c8
13 changed files with 98 additions and 38 deletions
|
@ -156,39 +156,48 @@ Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Loader {
|
||||||
x: Theme.horizontalPageMargin
|
active: !!aboutPage.userInformation.phone_number
|
||||||
width: parent.width - ( 2 * Theme.horizontalPageMargin )
|
width: parent.width
|
||||||
horizontalAlignment: Text.AlignHCenter
|
sourceComponent: Component {
|
||||||
text: qsTr("Logged in as %1").arg(Emoji.emojify(aboutPage.userInformation.first_name + " " + aboutPage.userInformation.last_name, Theme.fontSizeSmall))
|
Column {
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
|
||||||
wrapMode: Text.Wrap
|
|
||||||
color: Theme.primaryColor
|
|
||||||
textFormat: Text.StyledText
|
|
||||||
anchors {
|
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ProfileThumbnail {
|
Text {
|
||||||
photoData: aboutPage.userInformation.profile_photo.small
|
x: Theme.horizontalPageMargin
|
||||||
width: Theme.itemSizeExtraLarge
|
width: parent.width - ( 2 * Theme.horizontalPageMargin )
|
||||||
height: Theme.itemSizeExtraLarge
|
horizontalAlignment: Text.AlignHCenter
|
||||||
replacementStringHint: aboutPage.userInformation.first_name + " " + aboutPage.userInformation.last_name
|
text: qsTr("Logged in as %1").arg(Emoji.emojify(aboutPage.userInformation.first_name + " " + aboutPage.userInformation.last_name + typeof aboutPage.userInformation + JSON.stringify(aboutPage.userInformation), Theme.fontSizeSmall))
|
||||||
anchors {
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
horizontalCenter: parent.horizontalCenter
|
wrapMode: Text.Wrap
|
||||||
}
|
color: Theme.primaryColor
|
||||||
}
|
textFormat: Text.StyledText
|
||||||
|
anchors {
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Label {
|
ProfileThumbnail {
|
||||||
x: Theme.horizontalPageMargin
|
photoData: aboutPage.userInformation.profile_photo.small
|
||||||
width: parent.width - ( 2 * Theme.horizontalPageMargin )
|
width: Theme.itemSizeExtraLarge
|
||||||
horizontalAlignment: Text.AlignHCenter
|
height: Theme.itemSizeExtraLarge
|
||||||
text: qsTr("Phone number: +%1").arg(aboutPage.userInformation.phone_number)
|
replacementStringHint: aboutPage.userInformation.first_name + " " + aboutPage.userInformation.last_name
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
anchors {
|
||||||
wrapMode: Text.Wrap
|
horizontalCenter: parent.horizontalCenter
|
||||||
anchors {
|
}
|
||||||
horizontalCenter: parent.horizontalCenter
|
}
|
||||||
|
|
||||||
|
Label {
|
||||||
|
x: Theme.horizontalPageMargin
|
||||||
|
width: parent.width - ( 2 * Theme.horizontalPageMargin )
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
text: qsTr("Phone number: +%1").arg(aboutPage.userInformation.phone_number)
|
||||||
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
anchors {
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,13 @@ Page {
|
||||||
Behavior on contentHeight { NumberAnimation {} }
|
Behavior on contentHeight { NumberAnimation {} }
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
PullDownMenu {
|
||||||
|
MenuItem {
|
||||||
|
text: qsTr("About Fernschreiber")
|
||||||
|
onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: content
|
id: content
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
|
@ -825,6 +825,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>Nutzen Sie das internationale Format, z.B. %1</translation>
|
<translation>Nutzen Sie das internationale Format, z.B. %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>Über Fernschreiber</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -825,6 +825,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>Use the international format, e.g. %1</translation>
|
<translation>Use the international format, e.g. %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>About Fernschreiber</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
@ -869,7 +873,7 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Pin Message</source>
|
<source>Pin Message</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Pin Message</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@ -883,11 +887,11 @@
|
||||||
<name>MessageOverlayFlickable</name>
|
<name>MessageOverlayFlickable</name>
|
||||||
<message>
|
<message>
|
||||||
<source>You</source>
|
<source>You</source>
|
||||||
<translation type="unfinished">You</translation>
|
<translation>You</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>This message was forwarded. Original author: %1</source>
|
<source>This message was forwarded. Original author: %1</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>This message was forwarded. Original author: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@ -947,15 +951,15 @@
|
||||||
<name>PinnedMessageItem</name>
|
<name>PinnedMessageItem</name>
|
||||||
<message>
|
<message>
|
||||||
<source>You</source>
|
<source>You</source>
|
||||||
<translation type="unfinished">You</translation>
|
<translation>You</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Pinned Message</source>
|
<source>Pinned Message</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Pinned Message</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Message unpinned</source>
|
<source>Message unpinned</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Message unpinned</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
@ -1200,7 +1204,7 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Notification turns on the display</source>
|
<source>Notification turns on the display</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Notification turns on the display</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
|
|
|
@ -815,6 +815,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>Usar el formato internacional %1</translation>
|
<translation>Usar el formato internacional %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>Acerca de</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -826,6 +826,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>Käytä kansainvälistä muotoa, esimerkiksi %1</translation>
|
<translation>Käytä kansainvälistä muotoa, esimerkiksi %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>Tietoa Fernschreiberista</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -815,6 +815,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>A Fernschreiber névjegye</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -825,6 +825,10 @@
|
||||||
<source>Loading...</source>
|
<source>Loading...</source>
|
||||||
<translation>Carica...</translation>
|
<translation>Carica...</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>Informazioni su Fernschreiber</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -835,6 +835,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>Użyj międzynarodowego formatu, %1</translation>
|
<translation>Użyj międzynarodowego formatu, %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>O Fernschreiber</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -835,6 +835,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>Используйте международный формат, например %1</translation>
|
<translation>Используйте международный формат, например %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -825,6 +825,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>Använd internationellt format, t.ex. %1</translation>
|
<translation>Använd internationellt format, t.ex. %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>Om Fernschreiber</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -815,6 +815,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>请使用国际区号格式,例如 %1</translation>
|
<translation>请使用国际区号格式,例如 %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>关于 Fernschreiber</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
|
@ -825,6 +825,10 @@
|
||||||
<source>Use the international format, e.g. %1</source>
|
<source>Use the international format, e.g. %1</source>
|
||||||
<translation>Use the international format, e.g. %1</translation>
|
<translation>Use the international format, e.g. %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>About Fernschreiber</source>
|
||||||
|
<translation>About Fernschreiber</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>LocationPreview</name>
|
<name>LocationPreview</name>
|
||||||
|
|
Loading…
Reference in a new issue