Fix interactive graph colors for dark theme

Use brighter node colors (yellow, green, light blue) and white font
for better visibility on dark backgrounds.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 14:12:52 +01:00
parent e4360f9124
commit bde8bc5805

View File

@@ -196,24 +196,24 @@ def _render_interactive_graph(htree, direction):
label = f"{display_note}\n{ts}{branch_label}"
# Colors
# Colors - bright for dark backgrounds
if nid == htree.head_id:
color = "#eebb00" # Current head - yellow
color = "#ffdd44" # Current head - bright yellow
elif nid in htree.branches.values():
color = "#66aa66" # Branch tip - green
color = "#66dd66" # Branch tip - bright green
else:
color = "#888888" # Normal - gray
color = "#aaccff" # Normal - light blue
nodes.append(Node(
id=nid,
label=label,
size=20,
color=color,
font={"size": 10}
font={"size": 10, "color": "#ffffff"}
))
if n["parent"] and n["parent"] in htree.nodes:
edges.append(Edge(source=n["parent"], target=nid))
edges.append(Edge(source=n["parent"], target=nid, color="#888888"))
# Config based on direction
is_horizontal = direction == "LR"