From fe05e20599c9d57f88768af313c8fe16d7728f72 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 1 Mar 2020 11:40:24 +0100 Subject: [PATCH] Clean up about dialog --- qml/AboutDialog.qml | 20 +++++++++++--------- qml/telephant.qml | 7 ++++--- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/qml/AboutDialog.qml b/qml/AboutDialog.qml index 85e1228..c879694 100644 --- a/qml/AboutDialog.qml +++ b/qml/AboutDialog.qml @@ -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: "Telephant!" + text: "Telephant" 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 diff --git a/qml/telephant.qml b/qml/telephant.qml index 1caaf91..8f3dc92 100644 --- a/qml/telephant.qml +++ b/qml/telephant.qml @@ -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 {