Warning, /plasma-mobile/mycroft-plasmoid-mobile/plasmoid/contents/ui/Disclaimer.qml is written in an unsupported language. File is not indexed.

0001 /* Copyright 2016 Aditya Mehra <aix.m@outlook.com>                            
0002 
0003     This library is free software; you can redistribute it and/or
0004     modify it under the terms of the GNU Lesser General Public
0005     License as published by the Free Software Foundation; either
0006     version 2.1 of the License, or (at your option) version 3, or any
0007     later version accepted by the membership of KDE e.V. (or its
0008     successor approved by the membership of KDE e.V.), which shall
0009     act as a proxy defined in Section 6 of version 3 of the license.
0010     
0011     This library is distributed in the hope that it will be useful,
0012     but WITHOUT ANY WARRANTY; without even the implied warranty of
0013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014     Lesser General Public License for more details.
0015     
0016     You should have received a copy of the GNU Lesser General Public
0017     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
0018 */
0019 
0020 import QtQuick 2.9
0021 import org.kde.plasma.core 2.0 as PlasmaCore
0022 import org.kde.plasma.components 2.0 as PlasmaComponents
0023 import org.kde.plasma.extras 2.0 as PlasmaExtras
0024 
0025 Item {
0026 anchors.fill: parent
0027 
0028 Rectangle{
0029 id: disclaimerHeadingBg
0030 color: theme.linkColor
0031 anchors.left: parent.left
0032 anchors.top: parent.top
0033 anchors.right: parent.right
0034 height: units.gridUnit * 3
0035 
0036     Text {
0037         id: disclaimerHeading1
0038         height: 28
0039         text: i18n("Let's Continue?")
0040         font.pointSize: 24
0041         elide: Text.ElideLeft
0042         font.family: "Verdana"
0043         wrapMode: Text.WrapAnywhere
0044         font.bold: true
0045         renderType: Text.QtRendering
0046         anchors.horizontalCenter: parent.horizontalCenter
0047         anchors.top: parent.top
0048         anchors.topMargin: units.gridUnit * 0.5
0049         color: theme.backgroundColor
0050      }
0051 }
0052 
0053 
0054      Text {
0055         id: disclaimerBody1
0056         height: contentHeight
0057         text: i18n("Mycroft by default is powered by a cloud-based speech to text service. Mycroft gives you the ability to change speech to text services or use a locally configured one within their settings at home.mycroft.ai. If you agree to the default usage of Mycroft’s speech to text service, please continue. Also remember you can always choose to turn off or mute Mycroft when you do not wish to use it.")
0058         font.pointSize: 10
0059         font.family: "Verdana"
0060         wrapMode: Text.Wrap
0061         renderType: Text.QtRendering
0062         horizontalAlignment: Text.AlignHCenter
0063         anchors.top: disclaimerHeadingBg.bottom
0064         anchors.topMargin: 18
0065         anchors.right: parent.right
0066         anchors.rightMargin: 5
0067         anchors.left: parent.left
0068         anchors.leftMargin: 5
0069         color: theme.textColor
0070      }
0071 
0072      Item {
0073      id: noticemsg
0074      anchors.top: disclaimerBody1.bottom
0075      anchors.topMargin: 20
0076      anchors.right: parent.right
0077      anchors.left: parent.left
0078      height: disclaimerBody2.contentHeight
0079      
0080      Text {
0081         id: disclaimerBody2
0082         height: contentHeight
0083         text: i18n("To start using Mycroft toggle the switch in the upper right corner!")
0084         font.italic: true
0085         font.pointSize: 10
0086         font.family: "Verdana"
0087         wrapMode: Text.WrapAnywhere
0088         renderType: Text.QtRendering
0089         horizontalAlignment: Text.AlignHCenter
0090         anchors.right: parent.right
0091         anchors.rightMargin: 5
0092         anchors.left: parent.left
0093         anchors.leftMargin: 5
0094         color: theme.textColor
0095         }
0096     }
0097 }