From 70f9a143253aa99cc5a3052087843e3b6eb0e0b3 Mon Sep 17 00:00:00 2001 From: Dawn Date: Wed, 30 Sep 2026 13:41:19 +0200 Subject: [PATCH 1/2] fix: update color of the mounted row in AareGUI --- src/aare/gui/styles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aare/gui/styles.py b/src/aare/gui/styles.py index 8df63336..db3dbcd2 100644 --- a/src/aare/gui/styles.py +++ b/src/aare/gui/styles.py @@ -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.54.0 From 5cb32ba5fca61fd7d2d81f0a6189516d2dc9937e Mon Sep 17 00:00:00 2001 From: Dawn Date: Wed, 30 Sep 2026 13:58:13 +0200 Subject: [PATCH 2/2] test: patch the test --- tests/unit/gui/test_models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/unit/gui/test_models.py b/tests/unit/gui/test_models.py index 56c215d4..a1ac5f71 100644 --- a/tests/unit/gui/test_models.py +++ b/tests/unit/gui/test_models.py @@ -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) -- 2.54.0