diff --git a/Features/Settings/SettingsView.swift b/Features/Settings/SettingsView.swift index 7d0990b..255d771 100644 --- a/Features/Settings/SettingsView.swift +++ b/Features/Settings/SettingsView.swift @@ -71,6 +71,8 @@ struct SettingsView: View { // MARK: — Appearance + @Environment(\.colorScheme) private var colorScheme + private var appearanceSection: some View { VStack(alignment: .leading, spacing: 8) { sectionLabel("APPEARANCE") @@ -94,16 +96,23 @@ struct SettingsView: View { .padding(.vertical, 9) .background( RoundedRectangle(cornerRadius: 8, style: .continuous) - .fill(selected ? AppTheme.surfaceRaised : Color.clear) - .shadow(color: selected ? .black.opacity(0.08) : .clear, - radius: 4, x: 0, y: 1) + .fill(selected + ? Color(UIColor.secondarySystemGroupedBackground) + : Color.clear) + .shadow( + color: selected + ? (colorScheme == .dark ? .black.opacity(0.35) : .black.opacity(0.08)) + : .clear, + radius: colorScheme == .dark ? 2 : 4, + x: 0, y: colorScheme == .dark ? 1 : 1 + ) ) } .buttonStyle(PlainButtonStyle()) } } .padding(3) - .background(AppTheme.surfaceSunken) + .background(Color(UIColor.tertiarySystemFill)) .clipShape(RoundedRectangle(cornerRadius: 11, style: .continuous)) } }