nova-shell/shell/modules/WeatherModule.qml

26 lines
616 B
QML

import QtQuick
import Quickshell
import "." as M
import "../services" as S
import "../applets" as C
import NovaStats as NS
M.BarModule {
id: root
spacing: NS.ThemeService.moduleSpacing
active: NS.ModulesService.weatherEnable && 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
}
}