jasonsnell / PurpleAir-AQI-Scriptable-Widget

Generate Scriptable app widget to query PurpleAir sensor and display local AQI.
The Unlicense
168 stars 38 forks source link

Dark mode doesn't work right #18

Closed jasonsnell closed 4 years ago

jasonsnell commented 4 years ago

I'm not sure what can be done about this. Something is not getting through to the widget from Scriptable or the system.

If there's no good resolution I am tempted to rip out dark mode support or at least force one mode for the time being.

eventualbuddha commented 4 years ago

I've noticed this too. I assumed it was cached and that the next refresh would be right. Has that been the case for you?

jasonsnell commented 4 years ago

I'm disabling it for now because it just doesn't work consistently. I think either Scriptable or the system is just not allowing the widget to refresh the color scheme?

lickel commented 4 years ago

I had exchanged emails with the developer about supporting "dynamic" colors (how UIKit deals with this). I'm not 100% sure it can be done with the current SwiftUI APIs, but that's how I expect it would be fixed.

You'd basically do something like let dynamic = Color({ light: someColor, dark: someColor })

jasonsnell commented 4 years ago

Woo! Resolved in latest version. @lickel