telephant/qml/AboutDialog.qml

75 lines
2.5 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
}
2019-05-10 18:25:01 +00:00
RowLayout {
ColumnLayout {
Label {
text: "<a style=\"text-decoration: none; color: white;\" href=\"https://mastodon.social/@telephant\">Telephant!</a>"
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 14
onLinkActivated: Qt.openUrlExternally(link)
2019-05-10 00:55:48 +00:00
2019-05-10 18:25:01 +00: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 00:55:48 +00:00
2019-05-10 18:25:01 +00:00
Label {
text: "Version 0.1"
textFormat: Text.RichText
wrapMode: Label.Wrap
font.pointSize: 12
onLinkActivated: Qt.openUrlExternally(link)
2019-05-10 18:25:01 +00: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
}
}
}
Image {
smooth: true
source: "images/telephant_logo.png"
sourceSize.height: 64
}
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 18:25:01 +00:00
font.pointSize: 12
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
}
}
}