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

feat: add sun and moon view to WeatherTab (#787)

* feat: add sun and moon view to WeatherTab

* feat: hourly forecast and scrollable date

* fix: put listviews in loaders to prevent ui blocking

* dankdash/weather: wrap all tab content in loaders, weather updates
- remove a bunch of transitions that make things feel glitchy
- use animation durations from Theme
- configurable detailed/compact hourly view

* weather: fix scroll and some display issues

---------

Co-authored-by: bbedward <bbedward@gmail.com>
This commit is contained in:
mbpowers
2025-11-30 17:47:27 -06:00
committed by GitHub
parent cbd1fd908c
commit 17639e8729
11 changed files with 2324 additions and 910 deletions

View File

@@ -1004,6 +1004,19 @@ Singleton {
return Qt.rgba(c.r, c.g, c.b, a);
}
function blendAlpha(c, a) {
return Qt.rgba(c.r, c.g, c.b, c.a*a);
}
function blend(c1, c2, r) {
return Qt.rgba(
c1.r * (1-r) + c2.r * r,
c1.g * (1-r) + c2.g * r,
c1.b * (1-r) + c2.b * r,
c1.a * (1-r) + c2.a * r,
);
}
function getFillMode(modeName) {
switch (modeName) {
case "Stretch":