Clean up about dialog

This commit is contained in:
Christian Muehlhaeuser 2020-03-01 11:40:24 +01:00
parent 4b27d073ea
commit fe05e20599
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E
2 changed files with 15 additions and 12 deletions

View file

@ -19,9 +19,17 @@ import QtQuick.Layouts 1.3
}
RowLayout {
Image {
Layout.leftMargin: 8
smooth: true
source: "images/telephant_logo.png"
sourceSize.height: 64
}
ColumnLayout {
Layout.leftMargin: 8
Label {
text: "<a style=\"text-decoration: none; color: white;\" href=\"https://mastodon.social/@telephant\">Telephant!</a>"
text: "<a style=\"text-decoration: none; color: white;\" href=\"https://mastodon.social/@telephant\">Telephant</a>"
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 14
@ -38,7 +46,7 @@ import QtQuick.Layouts 1.3
text: "Version 0.1"
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 12
font.pointSize: 10
onLinkActivated: Qt.openUrlExternally(link)
MouseArea {
@ -48,17 +56,11 @@ import QtQuick.Layouts 1.3
}
}
}
Image {
smooth: true
source: "images/telephant_logo.png"
sourceSize.height: 64
}
}
Label {
width: aboutDialog.availableWidth
text: qsTr("Telephant! is a light-weight but modern social media client")
text: qsTr("Telephant is a light-weight but slick Mastodon client")
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 12

View file

@ -45,9 +45,10 @@ ApplicationWindow {
Item {
AboutDialog {
id: aboutDialog
x: (mainWindow.width - width) / 2
y: mainWindow.height / 6
width: Math.min(mainWindow.width, mainWindow.height) / 3 * 2
x: mainWindow.width / 2 - width / 2
y: mainWindow.height / 2 - height / 2 - mainWindow.header.height
width: 340
height: 340
}
ConnectDialog {