fix(theme): cable title defers to type_styles font; row radius token; hide empty detail

This commit is contained in:
2026-06-11 15:58:41 -04:00
parent 378e4ff116
commit 206f9c03db
2 changed files with 4 additions and 7 deletions

View File

@@ -519,19 +519,15 @@ QFrame#CablePanel[state="error"] {{
background-color: {t.alarm_bg};
border: 1px solid {t.alarm};
}}
QLabel#CablePanelTitle {{
color: {t.sub};
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
}}
/* Microcaps + font come from type_styles.column_header() in code (BL-DS3). */
QLabel#CablePanelTitle {{ color: {t.sub}; }}
QLabel#CablePanelHint {{ color: {t.faint}; font-size: 11px; }}
/* ---- Cable panel port rows (spec §5.9) ---------------------------------- */
QFrame#CableRow {{
background: transparent;
border: 1px solid transparent;
border-radius: 4px;
border-radius: {R.SM}px;
}}
QFrame#CableRow[selected="true"] {{
background-color: {t.accent_soft};

View File

@@ -40,6 +40,7 @@ class _PortRow(QFrame):
self._name.setObjectName("CableRowName")
self._detail = QLabel(port.detail, self)
self._detail.setObjectName("CableRowDetail")
self._detail.setVisible(bool(port.detail)) # no dead gap when there's no detail
self._port_id = QLabel("SIM" if port.device == SIMULATOR else port.device, self)
self._port_id.setObjectName("CableRowPort")
self._port_id.setFont(type_styles.data_cell()) # §5.9: right-aligned mono ID