diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-off.imageset/Contents.json b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-off.imageset/Contents.json new file mode 100644 index 0000000..0b35717 --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-off.imageset/Contents.json @@ -0,0 +1 @@ +{"images":[{"filename":"icon-bell-off.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-bell-off.imageset/icon-bell-off.svg b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-off.imageset/icon-bell-off.svg new file mode 100644 index 0000000..b7fc059 --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-off.imageset/icon-bell-off.svg @@ -0,0 +1 @@ + diff --git a/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-on.imageset/Contents.json b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-on.imageset/Contents.json new file mode 100644 index 0000000..9bedf78 --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-on.imageset/Contents.json @@ -0,0 +1 @@ +{"images":[{"filename":"icon-bell-on.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-bell-on.imageset/icon-bell-on.svg b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-on.imageset/icon-bell-on.svg new file mode 100644 index 0000000..910d02a --- /dev/null +++ b/AIStudyApp/AIStudyApp/Assets.xcassets/Icons/icon-bell-on.imageset/icon-bell-on.svg @@ -0,0 +1 @@ + diff --git a/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift b/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift index 7de2b25..e8d474c 100644 --- a/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift +++ b/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift @@ -45,7 +45,7 @@ struct SettingsView: View { sectionHeader("复习提醒") VStack(spacing: 0) { - ZXSettingToggleRow(title: "开启复习提醒", icon: "bell.badge.fill", color: Color.zxF05, isOn: $reviewReminder) + ZXSettingToggleRow(title: "开启复习提醒", icon: reviewReminder ? "icon-bell-on" : "icon-bell-off", color: Color.zxF05, isOn: $reviewReminder, isCustom: true) if reviewReminder { ZXSettingDivider() ZXSettingPickerRow(title: "提醒时间", value: $reminderTime, options: ["08:00", "12:00", "18:00", "20:00", "21:00"])