diff options
| author | Christian Kolset <ckolset@colostate.edu> | 2026-08-10 16:12:05 -0600 |
|---|---|---|
| committer | Christian Kolset <ckolset@colostate.edu> | 2026-08-10 16:12:05 -0600 |
| commit | 5d5bcaed8639a162fda85c8cd0d340c296a054b8 (patch) | |
| tree | a7a1a62fb607c9c85127dab4aab17ccf8e22c906 /ui/style_light.qss | |
| parent | 46231c00994cd681d598961f2056dbda31c3e483 (diff) | |
Unify Signals/Channels around auto-naming, plot-by-channel, and shared vars
Devices: auto-name from OS-reported port description (Device Manager /
udev string) instead of a generic label; default Serial #Channels 1;
consistent simulate-mode checkbox across backends; inline device rename.
Channels: calibration/filters move out of Signals into a Channel
"Operation" (adds Scale/Offset alongside the existing math kinds);
single-physical-source Channels get an embedded Filters block; new
Channels auto-name/auto-ID from their source and reject duplicate
names/IDs on apply; "Create Channel" button on each Signal row; renamed
"Sources" -> "Signals" in the Channels UI; Signals' READ/WRITE dir badge
(was silently-broken IN/OUT) now reflects the real writable flag.
Plot: default layout is one pane per Channel (not per device, not raw
Signals) titled by channel name; "+ Add Channel" is a checkbox dialog
instead of an inline dropdown; traces get up/down reorder; live unit
changes (e.g. a Mark-10 gauge switching lb/kgF/N/ozF) propagate to an
open pane's axis label without clobbering a manually-typed one.
Control Panel: hardware assignment now picks from the same writable-
Signals list instead of a separate device/channel combo with a
hardcoded Arduino pin list; stale visual indicator when a control's
target device/channel disconnects or disappears; documented the `vars`
bridge (Control Panel On Action Script <-> Channel scripts) in both
directions' help text and script templates.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'ui/style_light.qss')
| -rw-r--r-- | ui/style_light.qss | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/style_light.qss b/ui/style_light.qss index b98dc52..f75e7cb 100644 --- a/ui/style_light.qss +++ b/ui/style_light.qss @@ -17,6 +17,9 @@ QLabel#panelHeader { background:#f1f5f9; color:#64748b; font-family:"IBM Plex Mo QFrame#deviceCard { background:#ffffff; border:1px solid #e2e8f0; border-radius:6px; } QFrame#deviceCard:hover { border-color:#3b82f6; background:#f0f9ff; } QLabel#deviceName { font-size:13px; font-weight:600; color:#1e293b; } +QLineEdit#deviceName { font-size:13px; font-weight:600; color:#1e293b; background:transparent; border:1px solid transparent; border-radius:3px; padding:0 2px; } +QLineEdit#deviceName:hover { border-color:#cbd5e1; } +QLineEdit#deviceName:focus { border-color:#3b82f6; background:#ffffff; } QLabel#deviceSub { font-family:"IBM Plex Mono",monospace; font-size:10px; color:#94a3b8; } QLabel#deviceChannelCount { font-size:11px; color:#3b82f6; } QPushButton#configButton { background:#f1f5f9; color:#64748b; border:1px solid #cbd5e1; border-radius:3px; padding:3px 10px; font-size:11px; } @@ -60,6 +63,7 @@ QFrame#devWindowDivider { color:#e2e8f0; max-height:1px; } QWidget#cfgGlobalBar { background:#f8fafc; border-bottom:1px solid #e2e8f0; } QWidget#cfgBottomBar { background:#f8fafc; border-top:1px solid #e2e8f0; } QTableWidget#channelTable { background:#ffffff; gridline-color:#f1f5f9; border:1px solid #e2e8f0; alternate-background-color:#f8fafc; } +QTableWidget#channelTable::item:selected { background-color:#93c5fd; color:#0f172a; } QHeaderView::section { background:#f1f5f9; color:#475569; border:none; border-bottom:1px solid #e2e8f0; padding:4px 8px; font-weight:600; } /* Port scanner list — light theme */ @@ -73,10 +77,13 @@ QListWidget#portList::item:selected { background:#dbeafe; color:#1d4ed8; border- /* ── Control panel widgets ───────────────────────────────────────── */ QFrame#controlWidget { background:#ffffff; border:1px solid #cbd5e1; border-radius:6px; } +QFrame#controlWidget[stale="true"] { border:1px solid #d97706; } QWidget#controlWidgetHeader { background:#f1f5f9; border-radius:5px 5px 0 0; border-bottom:1px solid #e2e8f0; } QLabel#controlWidgetIcon { font-size:14px; color:#3b82f6; padding-right:4px; } QLabel#controlWidgetTitle { font-family:"IBM Plex Mono",monospace; font-size:11px; font-weight:700; letter-spacing:1.5px; color:#64748b; } +QLabel#controlWidgetStale { color:#d97706; font-size:12px; padding:0 2px; } QWidget#controlWidgetBody { background:#ffffff; border-radius:0 0 5px 5px; } +QFrame#controlWidget[stale="true"] QWidget#controlWidgetBody { background:#fffbeb; } /* Motor */ QLabel#motorSpeedLbl { font-family:"IBM Plex Mono",monospace; font-size:28px; font-weight:700; color:#1d4ed8; } |
