调整 StatsCard 组件中的开关颜色,以提升用户界面一致性

This commit is contained in:
yuchenglong
2026-01-21 10:44:24 +08:00
parent 4f841d6bf4
commit 6b6f5dc90f

View File

@@ -176,7 +176,7 @@ export function StatsCard({ match, isDark }: StatsCardProps) {
<Switch <Switch
value={flagSwitch} value={flagSwitch}
onValueChange={setFlagSwitch} onValueChange={setFlagSwitch}
trackColor={{ false: "#DDD", true: "#EEE" }} trackColor={{ false: "#DDD", true: "#3b5998" }}
thumbColor={flagSwitch ? "#A5D6A7" : "#FFF"} thumbColor={flagSwitch ? "#A5D6A7" : "#FFF"}
style={styles.smallSwitch} style={styles.smallSwitch}
/> />