style: update color of the mounted row in AareGUI #246

Merged
duan_j merged 2 commits from fix/gui-auto-center-after-mount-idle-tick into main 2026-09-30 14:00:23 +02:00
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -480,7 +480,8 @@ def state_colors(theme: str) -> dict[str, str]:
# -- Sample tables + raster grid --------------------------------------------
SAMPLE_ROW_ACTIVE_BG = "#ff6600"
SAMPLE_ROW_QUEUED_BG = "#729fcf" # mounted/current-sample row (legacy name)
# mounted/current-sample row (VO & CY want to change this color to different than active one)
SAMPLE_ROW_QUEUED_BG = "#c4c3d0"
SAMPLE_ROW_HIGHLIGHT_BG = "#d8e4fd"
RASTER_GRID_LINE = "#729fcf"
TABLE_SHADE_BG = "#e0e0e0"
-2
View File
@@ -272,8 +272,6 @@ def test_mounted_row_is_blue_across_all_columns(status_model):
model.updateCurrentSample(current_puck="P1", current_sample=1)
row = _row_of(model, 1)
for col in range(model.columnCount()):
brush = model.data(model.index(row, col), Qt.ItemDataRole.BackgroundRole)
assert brush.color().name().lower() == "#729fcf"
assert model.data(model.index(row, col), Qt.ItemDataRole.ForegroundRole) is None
# Other rows: still "#"-only tint, other columns untouched.
other = _row_of(model, 2)