Warning, /system/mycroft-gui/application/AboutPage.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * Copyright 2018 Marco Martin <mart@kde.org>
0003  * Copyright 2018 by Aditya Mehra <aix.m@outlook.com>
0004  *
0005  * Licensed under the Apache License, Version 2.0 (the "License");
0006  * you may not use this file except in compliance with the License.
0007  * You may obtain a copy of the License at
0008  *
0009  *    http://www.apache.org/licenses/LICENSE-2.0
0010  *
0011  * Unless required by applicable law or agreed to in writing, software
0012  * distributed under the License is distributed on an "AS IS" BASIS,
0013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014  * See the License for the specific language governing permissions and
0015  * limitations under the License.
0016  *
0017  */
0018 
0019 import QtQuick 2.15
0020 import QtQuick.Layouts 1.15
0021 import QtQuick.Controls 2.15 as Controls
0022 import org.kde.kirigami 2.19 as Kirigami
0023 import Mycroft 1.0 as Mycroft 
0024 
0025 Kirigami.ScrollablePage {
0026     title: "About"
0027     objectName: "About"
0028 
0029     globalToolBarStyle: Kirigami.ApplicationHeaderStyle.Titles
0030     Kirigami.Theme.colorSet: nightSwitch.checked ? Kirigami.Theme.Complementary : Kirigami.Theme.Window
0031 
0032     ColumnLayout {
0033         id: aboutLayout
0034         width: parent.width
0035         implicitHeight: childrenRect.height
0036         spacing: Kirigami.Units.largeSpacing
0037         
0038         Kirigami.Heading {
0039             id: clientLabel
0040             level: 2
0041             font.bold: true
0042             color: Kirigami.Theme.textColor;
0043             Layout.fillWidth: true
0044             text: "Client Information"
0045         }
0046         
0047         Controls.Label {
0048             id: andappverlabel
0049             visible: Kirigami.Settings.isMobile
0050             text: !isAndroid && Kirigami.Settings.isMobile ? "Application Version: " + versionNumber : "Android Application Version: " + versionNumber
0051             Layout.fillWidth: true
0052         }
0053         
0054         Controls.Label {
0055             id: mycroftguiapplabel
0056             visible: !Kirigami.Settings.isMobile
0057             text: "Mycroft GUI Version: " + versionNumber
0058             Layout.fillWidth: true
0059         }
0060         
0061         Item {
0062             Layout.minimumHeight: Kirigami.Units.largeSpacing * 2
0063         }
0064         
0065         Kirigami.Heading {
0066             id: licenselabel
0067             level: 2
0068             font.bold: true
0069             color: Kirigami.Theme.textColor;
0070             Layout.fillWidth: true
0071             text: "License"
0072         }
0073         
0074         Controls.Label {
0075             id: licenseinfolabel
0076             text: "Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 <br><br> Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
0077             Layout.fillWidth: true
0078             elide: Text.ElideRight
0079             wrapMode: Text.WordWrap
0080         }
0081     }
0082 }