telephant/qml/AboutDialog.qml

77 lines
2.6 KiB
QML
Raw Normal View History

import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Controls.Material 2.12
2020-04-20 20:06:19 +02:00
import QtQuick.Layouts 1.11
2017-08-29 07:02:56 +02:00
Popup {
modal: true
focus: true
contentHeight: aboutColumn.height
Column {
id: aboutColumn
spacing: 20
Label {
text: qsTr("About")
font.bold: true
}
2019-05-10 20:25:01 +02:00
RowLayout {
2020-03-01 11:40:24 +01:00
Image {
Layout.leftMargin: 8
smooth: true
source: "images/telephant_logo.png"
sourceSize.height: 64
}
2019-05-10 20:25:01 +02:00
ColumnLayout {
2020-03-01 11:40:24 +01:00
Layout.leftMargin: 8
2019-05-10 20:25:01 +02:00
Label {
2020-03-01 11:40:24 +01:00
text: "<a style=\"text-decoration: none; color: white;\" href=\"https://mastodon.social/@telephant\">Telephant</a>"
2019-05-10 20:25:01 +02:00
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 14
onLinkActivated: Qt.openUrlExternally(link)
2019-05-10 02:55:48 +02:00
2019-05-10 20:25:01 +02:00
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Label
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}
2019-05-10 02:55:48 +02:00
2019-05-10 20:25:01 +02:00
Label {
text: "Version 0.1"
textFormat: Text.RichText
wrapMode: Label.Wrap
2020-03-01 11:40:24 +01:00
font.pointSize: 10
2019-05-10 20:25:01 +02:00
onLinkActivated: Qt.openUrlExternally(link)
2019-05-10 20:25:01 +02:00
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Label
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
}
}
2017-08-29 07:02:56 +02:00
}
Label {
width: aboutDialog.availableWidth
2020-03-01 11:40:24 +01:00
text: qsTr("Telephant is a light-weight but slick Mastodon client")
2017-08-29 07:02:56 +02:00
textFormat: Text.RichText
wrapMode: Label.Wrap
2019-05-10 20:25:01 +02:00
font.pointSize: 12
2017-08-29 07:02:56 +02:00
onLinkActivated: Qt.openUrlExternally(link)
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Label
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
2017-08-29 07:02:56 +02:00
}
}
}