-
-
Notifications
You must be signed in to change notification settings - Fork 202
Canvas Sparkline: React to theme changes #9283
Copy link
Copy link
Closed
Labels
aibugSomething isn't workingSomething isn't workingcoreCore framework functionalityCore framework functionality
Description
The Sparkline canvas widget does not update its colors when the global application theme changes (e.g., to dark mode) because the theme config is only passed on initial registration, but updateConfig in the worker does not handle it dynamically.
Resolution:
- Updated
updateConfiginsrc/canvas/Sparkline.mjsto applythemechanges and trigger a redraw. - Evaluated
theme: me.theme?.includes('dark') ? 'dark' : 'light'inline insideafterSetOffscreenRegisteredinsrc/component/Sparkline.mjsto ensure the correct string is passed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aibugSomething isn't workingSomething isn't workingcoreCore framework functionalityCore framework functionality