ControlCenter: better autosizing for the weather card. Fix #713

This commit is contained in:
ItsLemmy
2025-11-11 07:09:32 -05:00
parent 16b5c27f26
commit a92b7686bf
@@ -71,9 +71,11 @@ SmartPanel {
readonly property int profileHeight: Math.round(64 * Style.uiScaleRatio)
readonly property int shortcutsHeight: Math.round(52 * Style.uiScaleRatio)
readonly property int audioHeight: Math.round(60 * Style.uiScaleRatio)
readonly property int weatherHeight: Math.round(190 * Style.uiScaleRatio)
readonly property int mediaSysMonHeight: Math.round(260 * Style.uiScaleRatio)
// We keep a dynamic weather height due to a more complex layout and font scaling
property int weatherHeight: Math.round(210 * Style.uiScaleRatio)
onOpened: {
MediaService.autoSwitchingPaused = true
}
@@ -149,7 +151,11 @@ SmartPanel {
Component {
id: weatherCard
WeatherCard {}
WeatherCard {
Component.onCompleted: {
root.weatherHeight = this.height
}
}
}
Component {