Warning, /plasma-mobile/mycroft-plasmoid-mobile/plasmoid/contents/ui/TomorrowWeatherType.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.0
0021 import QtQuick.Window 2.2
0022 import QtQuick.Layouts 1.3
0023 import QtQuick.Controls 2.0
0024 import QtQml.Models 2.2
0025 import org.kde.plasma.components 2.0 as PlasmaComponents
0026 import org.kde.plasma.extras 2.0 as PlasmaExtras
0027 import org.kde.plasma.core 2.0 as PlasmaCore
0028 import org.kde.plasma.plasmoid 2.0
0029 
0030 
0031 Column {
0032     spacing: 6
0033     //anchors.right: parent.right
0034     //anchors.left: parent.left
0035 
0036     //readonly property bool sentByMe: model.recipient !== "Me"
0037     //property alias cttemp: currenttempitem.text
0038     property alias lttemp: lowtempitem.text
0039     property alias httemp: hightempitem.text
0040 
0041     Row {
0042         id: messageRow
0043         spacing: 6
0044 
0045         Rectangle{
0046             id: messageWrapper
0047             width: cbwidth
0048             height: messageRect.height
0049             color: theme.backgroundColor
0050 
0051             Rectangle {
0052                 id: messageRect
0053                 width: cbwidth / 1.1
0054                 height: 100
0055                 //anchors.right: avatar.right
0056                 color: theme.backgroundColor
0057 
0058 
0059                 Rectangle {
0060                     id: rectangleltt
0061                     width: 100
0062                     height: 60
0063                     color: "#00000000"
0064                     anchors.top: todayweather.bottom
0065                     anchors.topMargin: 5
0066                     anchors.left: parent.left
0067                     anchors.leftMargin: 0
0068                     
0069                     PlasmaComponents.Label {
0070                         id: lowtemplable
0071                         anchors.left: parent.left
0072                         anchors.verticalCenter: lowtempaniimage.verticalCenter
0073                         text: i18n("Low")
0074 //                        font.family: "Courier"
0075                         font.pointSize: 12
0076                         font.bold: true
0077                         anchors.top: parent.top
0078                         anchors.topMargin: 8
0079                         anchors.leftMargin: 30
0080                     }
0081 
0082                     PlasmaComponents.Label {
0083                         id: lowtempitem
0084                         x: 63
0085                         y: 33
0086                         anchors.top: lowtemplable.bottom
0087                         text: i18n("100")
0088                         anchors.horizontalCenter: lowtemplable.horizontalCenter
0089                         anchors.topMargin: 10
0090                     }
0091 
0092                     PlasmaComponents.Label {
0093                         id: weatherwidgetlowtempdegree
0094                         text: i18n("°")
0095                         anchors.verticalCenterOffset: -5
0096                         anchors.verticalCenter: lowtempitem.verticalCenter
0097                         anchors.left: lowtempitem.right
0098                         anchors.leftMargin: 5
0099                         font.pixelSize: 12
0100                     }
0101 
0102 
0103                 }
0104 
0105                 Rectangle {
0106                     id: rectanglehtt
0107                     width: 100
0108                     height: 60
0109                     color: "#00000000"
0110                     anchors.top: todayweather.bottom
0111                     anchors.topMargin: 5
0112                     anchors.left: rectangleltt.right
0113                     anchors.leftMargin: 0
0114 
0115                     PlasmaComponents.Label {
0116                         id: hightempitem
0117                         x: 65
0118                         y: 70
0119                         anchors.top: hightemplable.bottom
0120                         text: i18n("100")
0121                         anchors.topMargin: 10
0122                         anchors.horizontalCenter: hightemplable.horizontalCenter
0123                     }
0124 
0125                     PlasmaComponents.Label {
0126                         id: hightemplable
0127                         anchors.left: parent.left
0128                         text: i18n("High")
0129                         font.pointSize: 12
0130                         font.bold: true
0131                    //     font.family: "Courier"
0132                         anchors.top: parent.top
0133                         anchors.topMargin: 8
0134                         anchors.verticalCenter: hightempaniimage.verticalCenter
0135                         anchors.leftMargin: 30
0136                     }
0137 
0138                     PlasmaComponents.Label {
0139                         id: weatherwidgethightempdegree
0140                         text: i18n("°")
0141                         anchors.verticalCenterOffset: -5
0142                         anchors.verticalCenter: hightempitem.verticalCenter
0143                         anchors.left: hightempitem.right
0144                         anchors.leftMargin: 5
0145                         font.pixelSize: 12
0146                     }
0147 
0148 
0149                 }
0150 
0151                 PlasmaComponents.Label {
0152                     id: todayweather
0153                     text: i18n("Tomorrow's Weather")
0154                     anchors.left: parent.left
0155                     anchors.leftMargin: 9
0156                  //   font.family: "Courier"
0157                     font.italic: false
0158                     font.bold: true
0159                     font.pixelSize: 17
0160                 }
0161 
0162 
0163 
0164             }
0165         }
0166 
0167     }
0168 }