You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ios): replace UIColor light-dark() approach with LightDarkForeground ShapeStyle
The UIColor(dynamicProvider:) approach does not produce adaptive colors in WidgetKit.
Replace with LightDarkForeground: ShapeStyle whose resolve(in: EnvironmentValues) is
called by SwiftUI's rendering engine at draw time with the correct dark/light context.
- JSColorParser: add parseLightDarkComponents() returning both Color values as a pair;
parseLightDark() private fallback (UIColor) kept for non-text contexts (borders,
backgrounds); remove findTopLevelComma() in favour of splitLightDark()
- TextStyle: add lightDarkColors field; add LightDarkForeground: ShapeStyle
- StyleConverter.parseText: route light-dark() strings to lightDarkColors instead of
the flat color field
- VoltraText: switch from foregroundColor to foregroundStyle(LightDarkForeground(...))
when lightDarkColors is set
0 commit comments