Debian Codegraph @

src/qml/About.qml

raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 import QtQuick 2.15
5 import QtQuick.Controls 2.15
6 import QtQuick.Layouts 1.15
7 import "Style.js" as Style
8
9 Pane {
10 ColumnLayout {
11 spacing: 20
12
13 RowLayout {
14 spacing: 20
15
16 Image {
17 source: "qrc:/images/AppIcon"
18 fillMode: Image.PreserveAspectFit
19 width: 128
20 height: 128
21 sourceSize.width: 128
22 }
23
24 ColumnLayout {
25 Item { Layout.fillHeight: true }
26
27 Label {
28 text: appInfo.name
29 font.pointSize: Style.g_text.size + 5
30 font.bold: true
31 }
32
33 Label {
34 text: appInfo.version
35 font.pointSize: Style.g_text.size + 2
36 }
37
38 Label {
39 text: qsTr("Control your hardware with ease using application profiles")
40 font.pointSize: Style.g_text.size + 1
41 }
42
43 Label {
44 text: qsTr("by") + " Juan Palacios"
45 font.bold: true
46 }
47 }
48
49 ColumnLayout {
50 Item { Layout.fillHeight: true }
51
52 Label {
53 text: qsTr("Links") + ": <ul>" +
54 "<li><a href=\"https://gitlab.com/corectrl/corectrl\">" + qsTr("Project") + "</a></li>" +
55 "<li><a href=\"https://gitlab.com/corectrl/corectrl/issues\">" + qsTr("Issue tracker") + "</a></li>" +
56 "<li><a href=\"https://gitlab.com/corectrl/corectrl/wikis/home\">"+ qsTr("Wiki") +"</a></li>" +
57 "<li><a href=\"https://gitlab.com/corectrl/corectrl/wikis/FAQ\">"+ qsTr("FAQ") +"</a></li>" +
58 "</ul>"
59
60 font.pointSize: Style.g_text.size + 1
61 onLinkActivated: Qt.openUrlExternally(link)
62
63 MouseArea {
64 anchors.fill: parent
65 acceptedButtons: Qt.NoButton
66 cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
67 }
68 }
69 }
70 }
71 }
72 }