feat(ios): 复习提醒开关切换铃铛图标(开=响铃/关=静音)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-05-30 10:33:04 +08:00
parent 1260c3cc92
commit 509ff8847b
5 changed files with 5 additions and 1 deletions

View File

@ -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}}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12.0004 3.50461C11.5148 3.50461 11.1211 3.89828 11.1211 4.3839L11.1211 4.62881C11.1211 5.04303 10.7853 5.37881 10.3711 5.37881C9.95688 5.37881 9.62109 5.04303 9.62109 4.62881L9.62109 4.3839C9.62109 3.06985 10.6863 2.00461 12.0004 2.00461C13.3144 2.00461 14.3797 3.06985 14.3797 4.3839L14.3797 4.62881C14.3797 5.04303 14.0439 5.37881 13.6297 5.37881C13.2155 5.37881 12.8797 5.04303 12.8797 4.62881L12.8797 4.3839C12.8797 3.89828 12.486 3.50461 12.0004 3.50461Z" fill-rule="evenodd" fill="#AEAEAE"></path><path d="M6.89679 6.42049C8.09182 4.92455 9.93399 3.96399 12 3.96399C15.6056 3.96399 18.5285 6.88689 18.5285 10.4925L18.5285 11.2143C18.5285 11.676 18.6316 12.1318 18.8303 12.5484L19.9854 14.9711C20.6265 16.3156 20.0769 17.9304 18.7219 18.544C18.3446 18.7149 17.9002 18.5475 17.7293 18.1702C17.5585 17.7928 17.7258 17.3484 18.1032 17.1776C18.6594 16.9257 18.927 16.2366 18.6314 15.6167L17.4763 13.194C17.1815 12.5757 17.0285 11.8993 17.0285 11.2143L17.0285 10.4925C17.0285 7.71531 14.7772 5.46399 12 5.46399C10.4093 5.46399 8.99139 6.20175 8.06875 7.35671C7.81022 7.68034 7.33829 7.73311 7.01466 7.47459C6.69103 7.21605 6.63826 6.74412 6.89679 6.42049ZM6.25529 9.51349C6.66919 9.52966 6.99161 9.8783 6.97544 10.2922C6.97285 10.3586 6.97154 10.4254 6.97154 10.4925L6.97154 11.214C6.97154 11.8993 6.81841 12.5759 6.52333 13.1944L5.36753 15.6172C5.04689 16.2893 5.38534 17.0386 6.04616 17.2334C6.80624 17.4575 7.70863 17.7007 8.63938 17.9017C9.8159 18.1559 11.0059 18.3355 11.9999 18.3354C12.9937 18.3354 14.1835 18.1558 15.3598 17.9017C15.6192 17.8457 15.8889 17.9309 16.069 18.1258C16.2491 18.3207 16.3128 18.5963 16.2365 18.8505C15.6896 20.6718 14.0007 22 11.9996 22C10.1583 22 8.58138 20.8755 7.91519 19.277C7.08611 19.0865 6.2967 18.8711 5.62202 18.6722C4.02295 18.2008 3.31989 16.4256 4.0137 14.9713L5.1695 12.5485C5.36835 12.1317 5.47154 11.6758 5.47154 11.214L5.47154 10.4925C5.47154 10.4058 5.47323 10.3195 5.47659 10.2336C5.49275 9.81975 5.84139 9.49732 6.25529 9.51349ZM9.95679 19.6679C10.484 20.1829 11.2051 20.5 11.9996 20.5C12.7941 20.5 13.5152 20.1829 14.0424 19.6679C13.3406 19.771 12.645 19.8354 12 19.8354C11.3547 19.8354 10.6589 19.771 9.95679 19.6679Z" fill-rule="evenodd" fill="#000000"></path><path d="M3.78217 3.46967C4.07506 3.17678 4.54994 3.17678 4.84283 3.46967L21.3428 19.9697C21.6357 20.2626 21.6357 20.7374 21.3428 21.0303C21.0499 21.3232 20.5751 21.3232 20.2822 21.0303L3.78217 4.53033C3.48928 4.23744 3.48928 3.76256 3.78217 3.46967Z" fill-rule="evenodd" fill="#AEAEAE"></path></svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -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}}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9.16972 18.312C9.49563 19.571 10.6402 20.5 11.9999 20.5C13.3595 20.5 14.5041 19.571 14.83 18.312L16.2822 18.6879C15.7891 20.5925 14.0598 22 11.9999 22C9.93994 22 8.21062 20.5925 7.71759 18.6879L9.16972 18.312Z" fill-rule="evenodd" fill="#AEAEAE"></path><path d="M12 3.50461C11.5144 3.50461 11.1207 3.89828 11.1207 4.3839L11.1207 4.62881C11.1207 5.04303 10.7849 5.37881 10.3707 5.37881C9.95651 5.37881 9.62073 5.04303 9.62073 4.62881L9.62073 4.3839C9.62073 3.06985 10.686 2.00461 12 2.00461C13.3141 2.00461 14.3793 3.06985 14.3793 4.3839L14.3793 4.62881C14.3793 5.04303 14.0435 5.37881 13.6293 5.37881C13.2151 5.37881 12.8793 5.04303 12.8793 4.62881L12.8793 4.3839C12.8793 3.89828 12.4856 3.50461 12 3.50461Z" fill-rule="evenodd" fill="#AEAEAE"></path><path d="M5.4719 10.4925C5.4719 6.88689 8.3948 3.96399 12.0004 3.96399C15.606 3.96399 18.5288 6.88689 18.5288 10.4925L18.5288 11.2143C18.5288 11.676 18.6319 12.1318 18.8306 12.5484L19.9858 14.9711C20.6793 16.4257 19.9761 18.2008 18.3769 18.6723C16.631 19.187 14.0417 19.8354 12.0003 19.8354C9.95855 19.8355 7.36859 19.187 5.62239 18.6722C4.02332 18.2008 3.32026 16.4256 4.01407 14.9713L5.16987 12.5485C5.36871 12.1317 5.4719 11.6758 5.4719 11.214L5.4719 10.4925ZM12.0004 5.46399C9.22323 5.46399 6.9719 7.71531 6.9719 10.4925L6.9719 11.214C6.9719 11.8993 6.81877 12.5759 6.5237 13.1944L5.3679 15.6172C5.04725 16.2893 5.38571 17.0386 6.04652 17.2334C7.78492 17.7459 10.1934 18.3355 12.0003 18.3354C13.8067 18.3354 16.2146 17.7459 17.9528 17.2335C18.6138 17.0386 18.9524 16.2891 18.6318 15.6167L17.4767 13.194C17.1818 12.5757 17.0288 11.8993 17.0288 11.2143L17.0288 10.4925C17.0288 7.71531 14.7775 5.46399 12.0004 5.46399Z" fill-rule="evenodd" fill="#000000"></path></svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -45,7 +45,7 @@ struct SettingsView: View {
sectionHeader("复习提醒") sectionHeader("复习提醒")
VStack(spacing: 0) { 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 { 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"])