telephant/qml/AboutDialog.qml

67 lines
2.2 KiB
QML
Raw Normal View History

2017-08-29 05:02:56 +00:00
import QtQuick 2.4
2017-08-29 14:28:33 +00:00
import QtQuick.Controls 2.1
import QtQuick.Controls.Material 2.1
2017-08-29 05:02:56 +00:00
import QtQuick.Layouts 1.3
Popup {
modal: true
focus: true
contentHeight: aboutColumn.height
Column {
id: aboutColumn
spacing: 20
Label {
text: qsTr("About")
font.bold: true
}
Label {
width: aboutDialog.availableWidth
text: "<a style=\"text-decoration: none; color: white;\" href=\"https://mastodon.social/@telephant\">Telephant!</a>"
2017-08-29 05:02:56 +00:00
textFormat: Text.RichText
wrapMode: Label.Wrap
2019-05-10 00:55:48 +00:00
font.pointSize: 14
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
}
}
Label {
width: aboutDialog.availableWidth
text: "Version 0.1"
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 14
2017-08-29 05:02:56 +00: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 05:02:56 +00:00
}
Label {
width: aboutDialog.availableWidth
2019-05-09 14:33:26 +00:00
text: qsTr("Telephant! is a light-weight but modern social media client")
2017-08-29 05:02:56 +00:00
textFormat: Text.RichText
wrapMode: Label.Wrap
2019-05-10 00:55:48 +00:00
font.pointSize: 13
2017-08-29 05:02:56 +00: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 05:02:56 +00:00
}
}
}