From 3cbff81c19b50fc31edae799bcfed6aff2f879fc Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 23 Apr 2026 01:26:03 +1000 Subject: [PATCH] feat: improve dash weather --- modules/dashboard/dash/SmallWeather.qml | 9 +++++---- plugin/src/Caelestia/Config/tokens.hpp | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/dashboard/dash/SmallWeather.qml b/modules/dashboard/dash/SmallWeather.qml index 488bf5a2..22bb46ef 100644 --- a/modules/dashboard/dash/SmallWeather.qml +++ b/modules/dashboard/dash/SmallWeather.qml @@ -9,7 +9,7 @@ Item { anchors.centerIn: parent implicitWidth: icon.implicitWidth + info.implicitWidth + info.anchors.leftMargin - implicitHeight: Math.max(icon.implicitHeight, info.implicitHeight) + Tokens.padding.largeIncreased + implicitHeight: Math.max(icon.implicitHeight, info.implicitHeight) + Tokens.padding.largeIncreased * 2 Component.onCompleted: Weather.reload() @@ -22,7 +22,7 @@ Item { animate: true text: Weather.icon color: Colours.palette.m3secondary - fontStyle: Tokens.font.icon.builders.extraLarge.scale(2).build() + fontStyle: Tokens.font.icon.builders.extraLarge.scale(1.8).build() } Column { @@ -32,7 +32,7 @@ Item { anchors.left: icon.right anchors.leftMargin: Tokens.spacing.largeIncreased - spacing: Tokens.spacing.small + spacing: Tokens.spacing.extraSmall StyledText { anchors.horizontalCenter: parent.horizontalCenter @@ -40,7 +40,7 @@ Item { animate: true text: Weather.temp color: Colours.palette.m3primary - font: Tokens.font.body.builders.large.size(28).weight(Font.Medium).build() + font: Tokens.font.headline.builders.large.width(110).weight(Font.DemiBold).build() } StyledText { @@ -48,6 +48,7 @@ Item { animate: true text: Weather.description + font: Tokens.font.body.builders.medium.weight(Font.Medium).build() elide: Text.ElideRight width: Math.min(implicitWidth, root.parent.width - icon.implicitWidth - info.anchors.leftMargin - Tokens.padding.extraLargeIncreased) diff --git a/plugin/src/Caelestia/Config/tokens.hpp b/plugin/src/Caelestia/Config/tokens.hpp index 261abdfb..712881f3 100644 --- a/plugin/src/Caelestia/Config/tokens.hpp +++ b/plugin/src/Caelestia/Config/tokens.hpp @@ -177,7 +177,7 @@ class DashboardTokens : public ConfigObject { CONFIG_PROPERTY(int, tabIndicatorHeight, 3) CONFIG_PROPERTY(int, tabIndicatorSpacing, 5) - CONFIG_PROPERTY(int, userWidth, 320) + CONFIG_PROPERTY(int, userWidth, 340) CONFIG_PROPERTY(int, logoSize, 30) CONFIG_PROPERTY(int, uptimeSize, 30) CONFIG_PROPERTY(int, bubbleSize, 8) @@ -186,7 +186,7 @@ class DashboardTokens : public ConfigObject { CONFIG_PROPERTY(int, mediaProgressSweep, 180) CONFIG_PROPERTY(int, mediaProgressThickness, 8) CONFIG_PROPERTY(int, resourceProgressThickness, 10) - CONFIG_PROPERTY(int, weatherWidth, 250) + CONFIG_PROPERTY(int, weatherWidth, 275) CONFIG_PROPERTY(int, mediaCoverArtSize, 150) CONFIG_PROPERTY(int, mediaVisualiserSize, 80) CONFIG_PROPERTY(int, resourceSize, 200)