Commit 1484243c authored by Han Young's avatar Han Young
Browse files

add compact representation to plasmoid

for use in system tray
parent dccfaa0f
Pipeline #77128 passed with stage
in 19 seconds
......@@ -14,4 +14,21 @@ Item {
active: true
source: plasmoid.nativeInterface.needLocation ? "LocationSelector.qml" : "WeatherContainer.qml"
}
Plasmoid.compactRepresentation: ColumnLayout{
Kirigami.Icon {
paintedHeight: 20
paintedWidth: 20
source: plasmoid.nativeInterface.weatherIcon
MouseArea {
anchors.fill: parent
onClicked: {
plasmoid.expanded = !plasmoid.expanded;
}
}
}
Label {
text: plasmoid.nativeInterface.temp + "°"
color: Kirigami.Theme.activeTextColor
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment