mirror of
https://github.com/rommapp/romm.git
synced 2026-12-06 15:54:45 +01:00
Second pass of the dual-theme audit (premise #5). This batch covers the primitives every dialog uses (RDialog, RTable, RSliderBtnGroup, RMenuItem) plus the dialogs/views the user touches most often (NotesTab, AchievementsTab, MatchRomDialog, DeleteRomDialog, EditRomDialog, UploadProgressToast, AboutDialog). 360 → 217 hardcoded sites left. Notable token swaps: - bg surfaces: rgba(255, 255, 255, 0.03/0.04/0.05) → --r-color-bg-elevated; 0.07 → --r-color-surface; 0.08/0.09/0.12 → --r-color-surface-hover - borders: 0.06/0.07 → --r-color-border; 0.08-0.12 → --r-color-border-strong - text: 0.92+ → --r-color-fg; 0.55-0.85 → --r-color-fg-secondary; 0.45 → --r-color-fg-muted; 0.25-0.35 → --r-color-fg-faint - inversion-on-active (segmented pill / achievements filter): background #fff/#111 → --r-color-fg, color #111/#fff → --r-color-bg The verbose `:global(.r-v2.r-v2-light) .foo { ... }` overrides collapse into single token rules; tokens already flip between dark and light. Verified with typecheck + lint + 94 tests. The RDialog panel background (rgba(16, 12, 28, 0.97) / rgba(255, 255, 255, 0.97)) and tinted overlays kept as-is for now — intentional surface, not a generic token target. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>