fix(ios): 删除云图标,改用上传图标;设置页图标统一黑色

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-05-30 09:59:41 +08:00
parent 812a621251
commit 3317602cdd
3 changed files with 11 additions and 13 deletions

View File

@ -1 +0,0 @@
{"images":[{"filename":"icon-cloud.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"template-rendering-intent":"template","preserves-vector-representation":true}}

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M14.7395 20C14.8201 20 14.8984 20 14.9795 20C19.3978 20 22.9795 16.4183 22.9795 12C22.9795 7.58172 19.3978 4 14.9795 4C12.4531 4 10.2057 5.17107 8.73953 7L7.51953 7C3.92968 7 1.01953 9.91015 1.01953 13.5C1.01953 17.0899 3.92968 20 7.51953 20L14.5195 20C14.5927 20 14.667 20 14.7395 20Z" fill-rule="evenodd" fill="#000000"></path><path d="M16.6895 17.72C19.0397 16.9512 20.9795 14.6815 20.9795 12C20.9795 8.68629 18.2932 6 14.9795 6C11.6658 6 8.97953 8.68629 8.97953 12L6.97953 12C6.97953 10.9391 7.18452 9.92643 7.55953 9L7.51953 9C5.03425 9 3.01953 11.0147 3.01953 13.5C3.01953 15.9853 5.03425 18 7.51953 18L14.5195 18C15.0693 18 15.9023 17.9004 16.6895 17.72Z" fill-rule="evenodd" fill="#000000"></path></svg>

Before

Width:  |  Height:  |  Size: 816 B

View File

@ -21,11 +21,11 @@ struct SettingsView: View {
VStack(spacing: 16) { VStack(spacing: 16) {
sectionHeader("外观与语言") sectionHeader("外观与语言")
VStack(spacing: 0) { VStack(spacing: 0) {
ZXSettingRow(title: "外观", value: appearanceLabel, icon: appearance == "dark" ? "icon-moon" : "icon-sun", color: Color.zxPurple, isCustom: true) ZXSettingRow(title: "外观", value: appearanceLabel, icon: appearance == "dark" ? "icon-moon" : "icon-sun", color: Color.zxF05, isCustom: true)
.contentShape(Rectangle()) .contentShape(Rectangle())
.onTapGesture { cycleAppearance() } .onTapGesture { cycleAppearance() }
ZXSettingDivider() ZXSettingDivider()
ZXSettingRow(title: "语言", value: language == "zh-CN" ? "简体中文" : "English", icon: "globe", color: Color.zxTeal) ZXSettingRow(title: "语言", value: language == "zh-CN" ? "简体中文" : "English", icon: "globe", color: Color.zxF05)
} }
.background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20))
.overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1))
@ -33,11 +33,11 @@ struct SettingsView: View {
sectionHeader("学习设置") sectionHeader("学习设置")
VStack(spacing: 0) { VStack(spacing: 0) {
NavigationLink(value: Route.goalSetting) { NavigationLink(value: Route.goalSetting) {
ZXSettingRow(title: "学习目标", value: "备考考试", icon: "target", color: Color.zxOrange) ZXSettingRow(title: "学习目标", value: "备考考试", icon: "target", color: Color.zxF05)
}.foregroundColor(.primary) }.foregroundColor(.primary)
ZXSettingDivider() ZXSettingDivider()
NavigationLink(value: Route.methodPreference) { NavigationLink(value: Route.methodPreference) {
ZXSettingRow(title: "学习方法偏好", value: "间隔回忆 · 费曼技巧", icon: "brain.head.profile", color: Color.zxPurple) ZXSettingRow(title: "学习方法偏好", value: "间隔回忆 · 费曼技巧", icon: "brain.head.profile", color: Color.zxF05)
}.foregroundColor(.primary) }.foregroundColor(.primary)
} }
.background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20))
@ -45,7 +45,7 @@ struct SettingsView: View {
sectionHeader("复习提醒") sectionHeader("复习提醒")
VStack(spacing: 0) { VStack(spacing: 0) {
ZXSettingToggleRow(title: "开启复习提醒", icon: "bell.badge.fill", color: Color.zxOrange, isOn: $reviewReminder) ZXSettingToggleRow(title: "开启复习提醒", icon: "bell.badge.fill", color: Color.zxF05, isOn: $reviewReminder)
if reviewReminder { if reviewReminder {
ZXSettingDivider() ZXSettingDivider()
ZXSettingPickerRow(title: "提醒时间", value: $reminderTime, options: ["08:00", "12:00", "18:00", "20:00", "21:00"]) ZXSettingPickerRow(title: "提醒时间", value: $reminderTime, options: ["08:00", "12:00", "18:00", "20:00", "21:00"])
@ -58,21 +58,21 @@ struct SettingsView: View {
sectionHeader("数据") sectionHeader("数据")
VStack(spacing: 0) { VStack(spacing: 0) {
ZXSettingToggleRow(title: "iCloud 同步", icon: "icon-cloud", color: Color.zxTeal, isOn: $iCloudSync, isCustom: true) ZXSettingToggleRow(title: "iCloud 同步", icon: "icon-upload", color: Color.zxF05, isOn: $iCloudSync, isCustom: true)
ZXSettingDivider() ZXSettingDivider()
ZXSettingToggleRow(title: "自动备份", icon: "arrow.triangle.2.circlepath", color: Color.zxAccent, isOn: $autoBackup) ZXSettingToggleRow(title: "自动备份", icon: "arrow.triangle.2.circlepath", color: Color.zxF05, isOn: $autoBackup)
} }
.background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20))
.overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1))
VStack(spacing: 0) { VStack(spacing: 0) {
NavigationLink(value: Route.feedbackForm) { NavigationLink(value: Route.feedbackForm) {
ZXSettingRow(title: "帮助与反馈", value: "", icon: "questionmark.circle.fill", color: Color.zxAccent) ZXSettingRow(title: "帮助与反馈", value: "", icon: "questionmark.circle.fill", color: Color.zxF05)
}.foregroundColor(.primary) }.foregroundColor(.primary)
ZXSettingDivider() ZXSettingDivider()
ZXSettingRow(title: "隐私政策", value: "", icon: "hand.raised.fill", color: Color.zxYellow) ZXSettingRow(title: "隐私政策", value: "", icon: "hand.raised.fill", color: Color.zxF05)
ZXSettingDivider() ZXSettingDivider()
ZXSettingRow(title: "用户协议", value: "", icon: "doc.text.fill", color: Color.zxGreen) ZXSettingRow(title: "用户协议", value: "", icon: "doc.text.fill", color: Color.zxF05)
} }
.background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20))
.overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1))
@ -82,7 +82,7 @@ struct SettingsView: View {
showLogoutAlert = true showLogoutAlert = true
} label: { } label: {
HStack(spacing: 12) { HStack(spacing: 12) {
Image("icon-logout").font(.system(size: 16)).foregroundColor(.red).frame(width: 32, height: 32) Image("icon-logout").resizable().scaledToFit().frame(width: 20, height: 20).foregroundColor(.red).frame(width: 32, height: 32)
Text("退出登录").font(.system(size: 14, weight: .semibold)).foregroundColor(.red) Text("退出登录").font(.system(size: 14, weight: .semibold)).foregroundColor(.red)
Spacer() Spacer()