From 402391beecc54aa3bcf95e1e1f97409623f88fa3 Mon Sep 17 00:00:00 2001 From: Turann_ Date: Fri, 23 Jan 2026 05:49:09 +0300 Subject: [PATCH 1/5] cards: Update WeatherCard icon logic and format --- Assets/Templates/discord.css | 2 -- Modules/Cards/WeatherCard.qml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Assets/Templates/discord.css b/Assets/Templates/discord.css index 5f2a9c9a8..eba4084a0 100644 --- a/Assets/Templates/discord.css +++ b/Assets/Templates/discord.css @@ -315,5 +315,3 @@ body { ._714a9a7abaf0392a-checkboxOption[data-selected="true"]:hover ._714a9a7abaf0392a-dot { color: var(--accent-1) !important; /* keep checkmark accent color on hover */ } - -#dorion_topbar { display: none; } \ No newline at end of file diff --git a/Modules/Cards/WeatherCard.qml b/Modules/Cards/WeatherCard.qml index c3fdcf306..27d2fa263 100644 --- a/Modules/Cards/WeatherCard.qml +++ b/Modules/Cards/WeatherCard.qml @@ -87,7 +87,7 @@ NBox { NIcon { Layout.alignment: Qt.AlignVCenter - icon: weatherReady ? LocationService.weatherSymbolFromCode(LocationService.data.weather.current_weather.weathercode) : "" + icon: weatherReady ? LocationService.weatherSymbolFromCode(LocationService.data.weather.current_weather.weathercode, LocationService.data.weather.current_weather.is_day) : "weather-cloud-off" pointSize: Style.fontSizeXXXL * 1.75 color: Color.mPrimary } From c6eb70170b5841755993a80ddf8df58d05ad9e37 Mon Sep 17 00:00:00 2001 From: Turann_ Date: Fri, 23 Jan 2026 05:49:19 +0300 Subject: [PATCH 2/5] widgets: Update DesktopWeather icon logic and format --- Modules/DesktopWidgets/Widgets/DesktopWeather.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/DesktopWidgets/Widgets/DesktopWeather.qml b/Modules/DesktopWidgets/Widgets/DesktopWeather.qml index c4adf7da6..a658949c5 100644 --- a/Modules/DesktopWidgets/Widgets/DesktopWeather.qml +++ b/Modules/DesktopWidgets/Widgets/DesktopWeather.qml @@ -63,7 +63,7 @@ DraggableDesktopWidget { NIcon { anchors.centerIn: parent - icon: weatherReady ? LocationService.weatherSymbolFromCode(currentWeatherCode) : "cloud" + icon: weatherReady ? LocationService.weatherSymbolFromCode(currentWeatherCode, LocationService.data.weather.current_weather.is_day) : "weather-cloud-off" pointSize: Math.round(Style.fontSizeXXXL * 2 * widgetScale) color: weatherReady ? Color.mPrimary : Color.mOnSurfaceVariant } From afb472cd27ed466c2795dbdb87bf6cf354ea4c40 Mon Sep 17 00:00:00 2001 From: Turann_ Date: Fri, 23 Jan 2026 05:49:37 +0300 Subject: [PATCH 3/5] services: Update LocationService API and logic and format --- Services/Location/LocationService.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Services/Location/LocationService.qml b/Services/Location/LocationService.qml index 9f7ca8b1d..83cd1745c 100644 --- a/Services/Location/LocationService.qml +++ b/Services/Location/LocationService.qml @@ -198,7 +198,7 @@ Singleton { // Fetch weather data from Open-Meteo API function fetchWeatherData(latitude, longitude, errorCallback) { Logger.d("Location", "Fetching weather from api.open-meteo.com"); - var url = "https://api.open-meteo.com/v1/forecast?latitude=" + latitude + "&longitude=" + longitude + "¤t_weather=true¤t=relativehumidity_2m,surface_pressure&daily=temperature_2m_max,temperature_2m_min,weathercode,sunset,sunrise&timezone=auto"; + var url = "https://api.open-meteo.com/v1/forecast?latitude=" + latitude + "&longitude=" + longitude + "¤t_weather=true¤t=relativehumidity_2m,surface_pressure,is_day&daily=temperature_2m_max,temperature_2m_min,weathercode,sunset,sunrise&timezone=auto"; var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function () { if (xhr.readyState === XMLHttpRequest.DONE) { @@ -237,11 +237,11 @@ Singleton { } // -------------------------------- - function weatherSymbolFromCode(code) { + function weatherSymbolFromCode(code, isDay) { if (code === 0) - return "weather-sun"; + return isDay ? "weather-sun" : "weather-moon"; if (code === 1 || code === 2) - return "weather-cloud-sun"; + return isDay ? "weather-cloud-sun" : "weather-moon-stars"; if (code === 3) return "weather-cloud"; if (code >= 45 && code <= 48) From ccb9a279300c52fc0d419eb028c6f86e66dcca48 Mon Sep 17 00:00:00 2001 From: Turann_ Date: Fri, 23 Jan 2026 05:50:35 +0300 Subject: [PATCH 4/5] added new icons --- Commons/IconsTabler.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Commons/IconsTabler.qml b/Commons/IconsTabler.qml index 0c37f44eb..e6874cc12 100644 --- a/Commons/IconsTabler.qml +++ b/Commons/IconsTabler.qml @@ -98,6 +98,9 @@ Singleton { "volume-low": "volume-2", "volume-high": "volume", "weather-sun": "sun", + "weather-moon": "moon", + "weather-moon-stars": "moon-stars", + "weather-cloud-off": "cloud-off", "weather-cloud": "cloud", "weather-cloud-haze": "cloud-fog", "weather-cloud-lightning": "cloud-bolt", From d229677317b8ff5793a107eeec411191cefb7b1f Mon Sep 17 00:00:00 2001 From: Turann_ Date: Fri, 23 Jan 2026 05:52:45 +0300 Subject: [PATCH 5/5] lockscreen: show weather-cloud-off when weather data unavailable --- Modules/LockScreen/LockScreenPanel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/LockScreen/LockScreenPanel.qml b/Modules/LockScreen/LockScreenPanel.qml index d57132915..42684651f 100644 --- a/Modules/LockScreen/LockScreenPanel.qml +++ b/Modules/LockScreen/LockScreenPanel.qml @@ -323,7 +323,7 @@ Item { NIcon { Layout.alignment: Qt.AlignVCenter - icon: LocationService.weatherSymbolFromCode(LocationService.data.weather.current_weather.weathercode) + icon: weatherReady ? LocationService.weatherSymbolFromCode(LocationService.data.weather.current_weather.weathercode, LocationService.data.weather.current_weather.is_day) : "weather-cloud-off" pointSize: Style.fontSizeXXXL color: Color.mPrimary }