Skip to content

Commit 7634d23

Browse files
committed
fix: improve node tag contrast in dark mode
- Use dynamic colors for NodeView text (#666666 light, #CCCCCC dark) - Ensure proper contrast between text and background in both modes
1 parent 49a66c1 commit 7634d23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

V2er/View/Widget/NodeView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ struct NodeView: View {
2525
} label: {
2626
Text(name)
2727
.font(.footnote)
28-
.foregroundColor(.primaryText)
28+
.foregroundColor(Color.dynamic(light: .hex(0x666666), dark: .hex(0xCCCCCC)))
2929
.lineLimit(1)
3030
.padding(.horizontal, 14)
3131
.padding(.vertical, 8)
32-
.background(Color.lightGray)
32+
.background(Color.dynamic(light: Color.hex(0xF5F5F5), dark: Color.hex(0x2C2C2E)))
3333
}
3434
}
3535

0 commit comments

Comments
 (0)