Skip to content

Commit fd656e2

Browse files
graycreateclaude
andauthored
Fix: Improve UI text and icon visibility in dark mode (#23)
* fix: change section title color from bodyText to primaryText for better visibility - Updated SectionTitleView to use primaryText color instead of bodyText - Improves visibility of section titles in Explore page - Affects all section headers including "今日热议", "最热节点", "新增节点", and "节点导航" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: improve tab bar icon visibility in dark mode - Added .renderingMode(.template) to tab icons for proper tinting - Applied different opacity for selected (100%) vs unselected (60%) tab items - Icons now properly respect TintColor which switches to white in dark mode - Improved visual hierarchy with clearer selected/unselected state distinction 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent acde0db commit fd656e2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

V2er/View/Widget/SectionTitleView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct SectionTitleView: View {
2525
Text(title)
2626
.font(style == .normal ? .headline : .subheadline)
2727
.fontWeight(.heavy)
28-
.foregroundColor(.bodyText)
28+
.foregroundColor(.primaryText)
2929
.padding(.vertical, 8)
3030
.padding(.horizontal, style == .normal ? 2 : 8)
3131
.background {

V2er/View/Widget/TabBar.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ struct TabBar: View {
3838
.frame(height: 3)
3939
.cornerRadius(0)
4040
Image(tab.icon)
41+
.renderingMode(.template)
4142
.resizable()
4243
.scaledToFit()
4344
.frame(height: 18)
@@ -57,7 +58,7 @@ struct TabBar: View {
5758
.fontWeight(isSelected ? .semibold : .regular)
5859
.padding(.bottom, 8)
5960
}
60-
.foregroundColor(Color.tintColor)
61+
.foregroundColor(isSelected ? Color.tintColor : Color.tintColor.opacity(0.6))
6162
.background(self.bg(isSelected: isSelected))
6263
.padding(.horizontal, 16)
6364
.background(Color.almostClear)

0 commit comments

Comments
 (0)