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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user