Skip to content

Commit 4ccf944

Browse files
bobleerclaude
andcommitted
style(web-ui): silver light for this device and idle devices
The device card's light was purple on this device and blue on a device not yet connected. Both now share one neutral silver drawn from the secondary content colour, so it follows light and dark themes; only a live connection keeps its green, and an incompatible device its amber. The Devices & Connections dialog's ambient light uses the same silver. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 148d763 commit 4ccf944

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

‎src/web-ui/src/app/components/NavPanel/NavPanel.scss‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,9 @@ $_section-header-height: 22px;
15771577
--_device-overview-inline-size: min(312px, calc(100vw - 16px));
15781578
--_device-overview-stage-size: 120px;
15791579
--_device-overview-inset: var(--openbitfun-space-4);
1580-
--_device-overview-light: var(--openbitfun-color-accent-default);
1580+
// Silver until a device is under control: this device and a device not yet
1581+
// connected share one neutral light; only a live connection turns green.
1582+
--_device-overview-light: var(--openbitfun-color-content-secondary);
15811583
--_device-overview-light-strength: 16%;
15821584
position: fixed;
15831585
z-index: var(--openbitfun-layer-popover);
@@ -1606,10 +1608,6 @@ $_section-header-height: 22px;
16061608
--_device-overview-light-strength: 26%;
16071609
}
16081610

1609-
&[data-control-state='local'] {
1610-
--_device-overview-light: var(--openbitfun-color-accent-secondary);
1611-
}
1612-
16131611
&[data-control-state='active'] {
16141612
--_device-overview-light: var(--openbitfun-color-status-success-content);
16151613
}

‎src/web-ui/src/app/components/RemoteConnectDialog/RemoteConnectDialog.scss‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
.openbitfun-remote-connect-dialog {
44
// The device card's atmosphere: one soft light from above in a single
5-
// hue, glass panes on it, round glass actions. No second colour.
6-
--_rc-ambient: var(--openbitfun-color-accent-secondary);
7-
--_rc-ambient-strength: 12%;
5+
// silver, glass panes on it, round glass actions. No second colour.
6+
--_rc-ambient: var(--openbitfun-color-content-secondary);
7+
--_rc-ambient-strength: 9%;
88
background:
99
radial-gradient(80% 55% at 50% 0%, color-mix(in srgb, var(--_rc-ambient) var(--_rc-ambient-strength), transparent), transparent 75%),
1010
radial-gradient(60% 45% at 100% 100%, color-mix(in srgb, var(--_rc-ambient) calc(var(--_rc-ambient-strength) / 3), transparent), transparent 70%),
1111
var(--openbitfun-color-surface-raised);
1212

1313
:where([data-color-scheme='dark']) & {
14-
--_rc-ambient-strength: 22%;
14+
--_rc-ambient-strength: 18%;
1515
}
1616

1717
block-size: min(620px, calc(100vh - 2 * var(--openbitfun-overlay-dialog-viewport-gutter)));

0 commit comments

Comments
 (0)