AdmiralTaco Claude Opus 4.8 commited on
Commit
0b9e562
·
1 Parent(s): 458425b

Fix relationship matrix readability: parchment panel bg + un-fade diagonal

Browse files

The #relmap-panel had a dark-text rule but no background, so its <th> header cells
sat on the dark Space theme (dark-on-dark, washed out) while body cells were fine
(they set their own light backgrounds). Give the panel a parchment background like
the other panels so headers read dark-on-light. Also drop the opacity:.5 on the
self-diagonal cells (it faded the text); use a muted background with full-opacity
dark text instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +1 -0
  2. ttw/game.py +3 -2
app.py CHANGED
@@ -202,6 +202,7 @@ CSS = """
202
  id-scoped !important dark-text rule as the other cream panels. The heat-panel
203
  and cutscene-panel are DARK surfaces with light inline text (safe by
204
  construction); they intentionally get no dark !important rule. */
 
205
  #relmap-panel, #relmap-panel * {color:#2e2519 !important;}
206
  """
207
 
 
202
  id-scoped !important dark-text rule as the other cream panels. The heat-panel
203
  and cutscene-panel are DARK surfaces with light inline text (safe by
204
  construction); they intentionally get no dark !important rule. */
205
+ #relmap-panel {background:#fbf7ec !important; border:1px solid #dcd6c4; border-radius:12px; padding:10px 14px;}
206
  #relmap-panel, #relmap-panel * {color:#2e2519 !important;}
207
  """
208
 
ttw/game.py CHANGED
@@ -285,8 +285,9 @@ class Game:
285
  for col in columns:
286
  value = int(row[col])
287
  if col == name:
288
- bg = "#dcd6c4"
289
- opacity = "opacity:.5;"
 
290
  elif value > 0:
291
  bg, opacity = "#cfe8d2", ""
292
  elif value < 0:
 
285
  for col in columns:
286
  value = int(row[col])
287
  if col == name:
288
+ # Self-cell: muted background but full-opacity dark text so it
289
+ # stays readable (opacity dimming faded the text on dark themes).
290
+ bg, opacity = "#e9e3d4", ""
291
  elif value > 0:
292
  bg, opacity = "#cfe8d2", ""
293
  elif value < 0: