diff --git a/modules/lock/WeatherInfo.qml b/modules/lock/WeatherInfo.qml index 0eebc0ab..74ae255c 100644 --- a/modules/lock/WeatherInfo.qml +++ b/modules/lock/WeatherInfo.qml @@ -33,6 +33,8 @@ StyledRect { anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top anchors.topMargin: Tokens.padding.extraLarge + + rootHeight: root.rootHeight } Loader { diff --git a/modules/lock/weather/BriefInfo.qml b/modules/lock/weather/BriefInfo.qml index 3a90a094..7d87dfc1 100644 --- a/modules/lock/weather/BriefInfo.qml +++ b/modules/lock/weather/BriefInfo.qml @@ -7,6 +7,8 @@ import qs.services ColumnLayout { id: root + required property int rootHeight + spacing: Tokens.spacing.extraSmall StyledText { @@ -39,6 +41,7 @@ ColumnLayout { } StyledText { + visible: root.rootHeight > Tokens.sizes.lock.showWeatherDetailsHeight Layout.alignment: Qt.AlignHCenter animate: true text: qsTr("Feels like %1").arg(Weather.temp) @@ -47,6 +50,7 @@ ColumnLayout { } StyledText { + visible: root.rootHeight > Tokens.sizes.lock.showWeatherDetailsHeight Layout.alignment: Qt.AlignHCenter animate: true text: { diff --git a/plugin/src/Caelestia/Config/tokens.hpp b/plugin/src/Caelestia/Config/tokens.hpp index ed7e79e0..d29f62ee 100644 --- a/plugin/src/Caelestia/Config/tokens.hpp +++ b/plugin/src/Caelestia/Config/tokens.hpp @@ -285,6 +285,7 @@ class LockTokens : public ConfigObject { CONFIG_PROPERTY(qreal, heightMult, 0.7) CONFIG_PROPERTY(qreal, ratio, 16.0 / 9.0) CONFIG_PROPERTY(int, centerWidth, 600) + CONFIG_PROPERTY(int, showWeatherDetailsHeight, 500) CONFIG_PROPERTY(int, showForecastHeight, 975) CONFIG_PROPERTY(int, forecastItemWidth, 51) CONFIG_PROPERTY(int, largeLogoWidth, 320)