nova-shell/shell/modules/WeatherModule.qml

25 lines
578 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
active: S.Modules.weather.enable && S.WeatherService.available
tooltip: "Weather"
panelNamespace: "nova-weather"
panelContentWidth: 280
panelComponent: Component {
C.WeatherApplet {
width: parent.width
accentColor: root.accentColor
}
}
M.BarIcon {
icon: S.WeatherService.icon
anchors.verticalCenter: parent.verticalCenter
}
}