nova-shell/shell/modules/WeatherModule.qml

26 lines
605 B
QML

import QtQuick
import Quickshell
import "." as M
import "../services" as S
import "../applets" as C
M.BarModule {
id: root
spacing: S.Theme.moduleSpacing
visible: S.Modules.weather.enable && S.WeatherService.available
tooltip: "Weather"
panelNamespace: "nova-weather"
panelTitle: "Weather"
panelContentWidth: 280
panelComponent: Component {
C.WeatherApplet {
width: parent.width
accentColor: root.accentColor
}
}
M.BarIcon {
icon: S.WeatherService.icon
anchors.verticalCenter: parent.verticalCenter
}
}