Frontmatter
| id | 9283 |
| title | Canvas Sparkline: React to theme changes |
| state | Closed |
| labels | bugaicore |
| assignees | tobiu |
| createdAt | Feb 24, 2026, 3:20 AM |
| updatedAt | Feb 24, 2026, 3:21 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9283 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 24, 2026, 3:21 AM |
Canvas Sparkline: React to theme changes

tobiu
Feb 24, 2026, 3:20 AM
The fix has been implemented and pushed to the dev branch.
The Sparkline canvas widget does not update its colors when the global application theme changes (e.g., to dark mode) because the
themeconfig is only passed on initial registration, butupdateConfigin the worker does not handle it dynamically.Resolution:
updateConfiginsrc/canvas/Sparkline.mjsto applythemechanges and trigger a redraw.theme: me.theme?.includes('dark') ? 'dark' : 'light'inline insideafterSetOffscreenRegisteredinsrc/component/Sparkline.mjsto ensure the correct string is passed.