This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
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
}
}