AC block: mode-driven accent colour, stronger fade when off
Icon and lit fan bars now share one --ac-accent custom property so they can never drift apart: blue (cool), red (heat), amber (auto/fan), app-primary default for dry (not in the requested colour spec). Off overrides all of them with light grey plus a real opacity fade. Applies to both the Dashboard's ZoneCard and kiosk's KioskZoneBlock via the shared CSS. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
29340beb7a
commit
0f64500813
3 changed files with 18 additions and 8 deletions
|
|
@ -58,7 +58,7 @@ export default function KioskZoneBlock({ zone, liveDevices, selectionMode, selec
|
|||
<div className="kiosk-block-top">
|
||||
<span className="kiosk-block-zone">{zone.name}</span>
|
||||
{ac && (
|
||||
<div className={`ac-block${acOn ? '' : ' off'}`}>
|
||||
<div className={`ac-block ac-mode-${ac.current_mode || 'unknown'}${acOn ? '' : ' off'}`}>
|
||||
{ac.remote_locked && <Lock size={12} strokeWidth={1.75} className="ac-lock" />}
|
||||
<div className="ac-mode-row">
|
||||
<ModeIcon size={18} strokeWidth={1.75} />
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ export default function ZoneCard({ zone, onClick }: { zone: ZoneStatus; onClick:
|
|||
</div>
|
||||
|
||||
{ac && (
|
||||
<div className={`ac-block${acOn ? '' : ' off'}`}>
|
||||
<div className={`ac-block ac-mode-${ac.current_mode || 'unknown'}${acOn ? '' : ' off'}`}>
|
||||
{ac.remote_locked && <Lock size={12} strokeWidth={1.75} className="ac-lock" />}
|
||||
<div className="ac-mode-row">
|
||||
<ModeIcon size={20} strokeWidth={1.75} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue