[PR #7830] fix(ui): toast follows theme colors instead of inverted #12524

Closed
opened 2026-02-16 18:17:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7830

State: closed
Merged: No


Problem

Toast notification uses inverted colors (--surface-float-base, --text-invert-*) which don't adapt to theme changes.

Fixes #7831

Solution

  • Changed background from --surface-float-base to --surface-raised-strong
  • Replaced all --text-invert-* tokens with --text-* tokens
  • Fixed typo: --text-invert-stronger doesn't exist in theme system

Result

Toast now follows theme:

  • Light mode → light background
  • Dark mode → dark background

Testing

Tested in desktop app with theme switching.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7830 **State:** closed **Merged:** No --- ## Problem Toast notification uses inverted colors (`--surface-float-base`, `--text-invert-*`) which don't adapt to theme changes. Fixes #7831 ## Solution - Changed background from `--surface-float-base` to `--surface-raised-strong` - Replaced all `--text-invert-*` tokens with `--text-*` tokens - Fixed typo: `--text-invert-stronger` doesn't exist in theme system ## Result Toast now follows theme: - Light mode → light background - Dark mode → dark background ## Testing Tested in desktop app with theme switching.
yindo added the pull-request label 2026-02-16 18:17:25 -05:00
yindo closed this issue 2026-02-16 18:17:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12524