From 3317602cddf934db9d12c9801383485fd37241cc Mon Sep 17 00:00:00 2001 From: wangdl Date: Sat, 30 May 2026 09:59:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(ios):=20=E5=88=A0=E9=99=A4=E4=BA=91?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=EF=BC=8C=E6=94=B9=E7=94=A8=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=EF=BC=9B=E8=AE=BE=E7=BD=AE=E9=A1=B5=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=BB=9F=E4=B8=80=E9=BB=91=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- .../Icons/icon-cloud.imageset/Contents.json | 1 - .../Icons/icon-cloud.imageset/icon-cloud.svg | 1 - .../Features/Profile/SettingsView.swift | 22 +++++++++---------- 3 files changed, 11 insertions(+), 13 deletions(-) delete mode 100644 AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-cloud.imageset/Contents.json delete mode 100644 AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-cloud.imageset/icon-cloud.svg diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-cloud.imageset/Contents.json b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-cloud.imageset/Contents.json deleted file mode 100644 index 59b520e..0000000 --- a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-cloud.imageset/Contents.json +++ /dev/null @@ -1 +0,0 @@ -{"images":[{"filename":"icon-cloud.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"template-rendering-intent":"template","preserves-vector-representation":true}} diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-cloud.imageset/icon-cloud.svg b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-cloud.imageset/icon-cloud.svg deleted file mode 100644 index 06ed64a..0000000 --- a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-cloud.imageset/icon-cloud.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift b/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift index 1e29557..f754dc7 100644 --- a/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift +++ b/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift @@ -21,11 +21,11 @@ struct SettingsView: View { VStack(spacing: 16) { sectionHeader("外观与语言") 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()) .onTapGesture { cycleAppearance() } 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)) .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) @@ -33,11 +33,11 @@ struct SettingsView: View { sectionHeader("学习设置") VStack(spacing: 0) { NavigationLink(value: Route.goalSetting) { - ZXSettingRow(title: "学习目标", value: "备考考试", icon: "target", color: Color.zxOrange) + ZXSettingRow(title: "学习目标", value: "备考考试", icon: "target", color: Color.zxF05) }.foregroundColor(.primary) ZXSettingDivider() 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) } .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) @@ -45,7 +45,7 @@ struct SettingsView: View { sectionHeader("复习提醒") 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 { ZXSettingDivider() ZXSettingPickerRow(title: "提醒时间", value: $reminderTime, options: ["08:00", "12:00", "18:00", "20:00", "21:00"]) @@ -58,21 +58,21 @@ struct SettingsView: View { sectionHeader("数据") 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() - 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)) .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) VStack(spacing: 0) { 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) ZXSettingDivider() - ZXSettingRow(title: "隐私政策", value: "", icon: "hand.raised.fill", color: Color.zxYellow) + ZXSettingRow(title: "隐私政策", value: "", icon: "hand.raised.fill", color: Color.zxF05) 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)) .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) @@ -82,7 +82,7 @@ struct SettingsView: View { showLogoutAlert = true } label: { 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) Spacer()