Warning, /utilities/kweather/src/plasmoid/package/contents/ui/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2020 2021 HanY <hanyoung@protonmail.com> 0003 SPDX-License-Identifier: LGPL-2.1-or-later 0004 */ 0005 0006 import QtQuick 2.1 0007 import QtQuick.Layouts 1.1 0008 import QtQuick.Controls 2.4 0009 import org.kde.plasma.plasmoid 2.0 0010 import org.kde.kirigami 2.11 as Kirigami 0011 0012 PlasmoidItem { 0013 id: root 0014 0015 Plasmoid.backgroundHints: "ShadowBackground"; 0016 0017 fullRepresentation: Loader { 0018 active: true 0019 source: root.plasmoid.needLocation ? "LocationSelector.qml" : "WeatherContainer.qml" 0020 } 0021 0022 compactRepresentation: ColumnLayout{ 0023 Kirigami.Icon { 0024 height: 20 0025 width: 20 0026 source: root.plasmoid.weatherIcon 0027 MouseArea { 0028 anchors.fill: parent 0029 onClicked: { 0030 plasmoid.expanded = !plasmoid.expanded; 0031 } 0032 } 0033 } 0034 Label { 0035 text: root.plasmoid.temp + "°" 0036 color: Kirigami.Theme.activeTextColor 0037 } 0038 } 0039 }