1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 23:12:49 -05:00

add disable weather option

This commit is contained in:
bbedward
2025-08-05 15:57:01 -04:00
parent 55bb63f2a5
commit c88dc67dbc
6 changed files with 189 additions and 9 deletions

View File

@@ -200,7 +200,7 @@ PanelWindow {
width: parent.width
height: {
let widgetHeight = 160; // Media widget
widgetHeight += 140 + Theme.spacingM; // Weather widget with spacing
widgetHeight += 140 + Theme.spacingM; // Weather/SystemInfo widget with spacing
let calendarHeight = 300; // Calendar
return Math.max(widgetHeight, calendarHeight);
}
@@ -225,6 +225,13 @@ PanelWindow {
Weather {
width: parent.width
height: 140
visible: Prefs.weatherEnabled
}
SystemInfo {
width: parent.width
height: 140
visible: !Prefs.weatherEnabled
}
}