Warning, /plasma-bigscreen/mycroft-bigscreen-setup/ui/pairing.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * Copyright 2018 by Aditya Mehra <aix.m@outlook.com>
0003  *
0004  * Licensed under the Apache License, Version 2.0 (the "License");
0005  * you may not use this file except in compliance with the License.
0006  * You may obtain a copy of the License at
0007  *
0008  *    http://www.apache.org/licenses/LICENSE-2.0
0009  *
0010  * Unless required by applicable law or agreed to in writing, software
0011  * distributed under the License is distributed on an "AS IS" BASIS,
0012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013  * See the License for the specific language governing permissions and
0014  * limitations under the License.
0015  *
0016  */
0017 
0018 import QtQuick.Layouts 1.4
0019 import QtQuick 2.4
0020 import QtQuick.Controls 2.0
0021 import org.kde.kirigami 2.4 as Kirigami
0022 
0023 import Mycroft 1.0 as Mycroft
0024 
0025 Mycroft.Delegate {
0026     id: root
0027     property var code: sessionData.code
0028     Rectangle {
0029         color: "#22a7f0"
0030         width: parent.width
0031         height: parent.height
0032         ColumnLayout {
0033             anchors.fill: parent
0034         
0035             Text {
0036                 id: instruction
0037                 Layout.fillWidth: true
0038                 Layout.alignment: Qt.AlignLeft
0039                 horizontalAlignment: Text.AlignHCenter
0040                 wrapMode: Text.WordWrap
0041                 elide: Text.ElideRight
0042                 font.family: "Noto Sans"
0043                 font.bold: true
0044                 font.weight: Font.Bold
0045                 fontSizeMode: Text.HorizontalFit
0046                 minimumPixelSize: 65
0047                 font.pixelSize: 80
0048                 visible: !content.visible
0049                 color: "white"
0050                 text: root.code
0051             }
0052         }
0053     }
0054 }