Skip to content

Commit 49a66c1

Browse files
committed
fix: improve text color contrast in dark mode
- Change NodeView text from hardcoded black to primaryText color - Add secondaryText color to comment count labels for better visibility - Add Appearance Settings option to Settings page menu
1 parent a3ed3cc commit 49a66c1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

V2er/View/Feed/FeedItemView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ struct FeedItemView<Data: FeedItemProtocol>: View {
3737
.padding(.vertical, 4)
3838
Text("评论\(data.replyNum.safe)")
3939
.font(.footnote)
40+
.foregroundColor(.secondaryText)
4041
.greedyWidth(.trailing)
4142
}
4243
.padding(12)

V2er/View/Settings/SettingsPage.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ struct SettingsPage: View {
2222
private var formView: some View {
2323
ScrollView {
2424
VStack(spacing: 0) {
25-
SectionItemView("通用设置", showDivider: false)
25+
SectionItemView("外观设置", showDivider: false)
2626
.padding(.top, 8)
27+
.to { AppearanceSettingView() }
28+
29+
SectionItemView("通用设置")
2730
.to { OtherSettingsView() }
2831

2932
SectionItemView("帮助与反馈")

V2er/View/Widget/NodeView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct NodeView: View {
2525
} label: {
2626
Text(name)
2727
.font(.footnote)
28-
.foregroundColor(.black)
28+
.foregroundColor(.primaryText)
2929
.lineLimit(1)
3030
.padding(.horizontal, 14)
3131
.padding(.vertical, 8)

0 commit comments

Comments
 (0)