~thrrgilag/pantalaimon-ut

pantalaimon-ut/AboutPage.qml.in -rw-r--r-- 3.8 KiB
cb1aa162Morgan McMillian updated links in README 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import QtQuick 2.7
import Ubuntu.Components 1.3

Page {
    id: aboutPage

    property string appIcon: "../assets/logo.svg"
    property string appName: "@APP_NAME@"
    property string version: "version @APP_VERSION@"
    property string license: "<a href='http://www.apache.org/licenses/LICENSE-2.0'>Apache Software License 2.0</a>"
    property string source: "<a href='https://git.sr.ht/~thrrgilag/pantalaimon-ut'>git.sr.ht/~thrrgilag/pantalaimon-ut</a>"

    header: PageHeader {
        id: pageHeader
        title: i18n.tr("About")
    }

    Flickable {
        id: scrollView

        anchors {
            top: aboutPage.header.bottom
            bottom: parent.bottom
            left: parent.left
            right: parent.right
            leftMargin: units.gu(2)
            rightMargin: units.gu(2)
        }
        contentHeight: aboutColumn.height + units.gu(4)

        clip: true

        Column {
            id: aboutColumn
            spacing: units.gu(2)

            anchors {
                top: parent.top;
                left: parent.left;
                right: parent.right;
            }

            Label {
                text: " "
            }

            UbuntuShape {
                width: units.gu(12)
                height: units.gu(12)
                radius: "medium"
                anchors.topMargin: units.gu(12)
                anchors.horizontalCenter: parent.horizontalCenter
                image: Image {
                    source: appIcon
                }
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr(appName)
                wrapMode: Text.WordWrap
                fontSize: "x-large"
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr("End-to-end encryption aware Matrix reverse proxy daemon for Ubuntu Touch")
                wrapMode: Text.WordWrap
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr(version)
                wrapMode: Text.WordWrap
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr("Copyright (c) 2021 Morgan McMillian &lt;<a href='mailto:thrrgilag@dreamfall.space'>thrrgilag@dreamfall.space</a>&gt;")
                wrapMode: Text.WordWrap
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr(source)
                wrapMode: Text.WordWrap
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr("Pantalaimon v0.10.3")
                wrapMode: Text.WordWrap
                fontSize: "large"
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr("Copyright (c) 2021 The Matrix.org Foundation CIC")
                wrapMode: Text.WordWrap
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr("<a href='https://github.com/matrix-org/pantalaimon'>github.com/matrix-org/pantalaimon</a>")
                wrapMode: Text.WordWrap
            }

            Label {
                width: parent.width
                horizontalAlignment: Text.AlignHCenter
                text: i18n.tr("Released under the terms of " + license)
                wrapMode: Text.WordWrap
            }

            Label {
                text: " "
            }
        }
    }

}