fix(theme): reactive ThemeToggle component with visible label
Previous topbar theme button used useApp.getState() inline in JSX which doesn't subscribe — clicking changed state but the icon never re-rendered. Replace with proper component that subscribes via hook. Also add visible 'DARK'/'LIGHT' label so the button is discoverable without hover-tooltip-only labelling. Confidence: high Scope-risk: trivial
This commit is contained in:
@@ -1787,3 +1787,6 @@ select.studio-input { background: var(--bp-paper); }
|
||||
gap: var(--space-md);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.theme-toggle-label { font-size: 10px; letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase; }
|
||||
|
||||
Reference in New Issue
Block a user