From bde8bc5805ce9849b7eb937e4a46187a3a040642 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Tue, 3 Feb 2026 14:12:52 +0100 Subject: [PATCH] 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 --- tab_timeline.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tab_timeline.py b/tab_timeline.py index e31fb08..25ad384 100644 --- a/tab_timeline.py +++ b/tab_timeline.py @@ -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"