Commit a969d5f
Improve tab bar color contrast in light and dark modes (#55)
* feat: improve tab bar color contrast in light and dark modes
Update tab bar unselected item color from 40% to 60% opacity for better
contrast and visibility in both light and dark modes.
Changes:
- Light mode: selected uses dark color, unselected uses 60% opacity dark (was 40%)
- Dark mode: selected uses white, unselected uses 60% opacity white (was 40%)
The subtle difference (100% vs 60%) provides better visual feedback while
maintaining a clean, modern look consistent with iOS design patterns.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: improve tab bar color configuration using SwiftUI modifiers
Fix tab bar colors by using proper SwiftUI approach instead of UIKit appearance APIs:
- Use .tint(Color.primary) for selected items (auto-adapts to light/dark mode)
- Set appearance.stackedLayoutAppearance for unselected text colors
- Remove UITabBar.appearance().tintColor to fix dark mode color reversal
Light mode: selected=black, unselected=light gray (78%)
Dark mode: selected=white, unselected=dim gray (60%)
Text colors now work correctly, icon colors need further fix.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: simplify tab bar color configuration with accentColor
Simplify the tab bar color implementation:
- Use UITabBar.appearance().unselectedItemTintColor for unselected items (both icons and text)
- Use .accentColor(Color.primary) modifier on TabView for selected items
- Remove complex UITabBarAppearance layout configurations
This simpler approach should properly apply colors to both icons and text:
- Light mode: selected=black, unselected=light gray (78%)
- Dark mode: selected=white, unselected=dim gray (60%)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 053bfdd commit a969d5f
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
27 | 44 | | |
28 | 45 | | |
29 | 46 | | |
| |||
85 | 102 | | |
86 | 103 | | |
87 | 104 | | |
| 105 | + | |
88 | 106 | | |
89 | 107 | | |
90 | 108 | | |
| |||
0 commit comments