Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct AudiobookShelfConnectionView: View {
}
}
.scrollContentBackground(.hidden)
.background(theme.systemGroupedBackgroundColor)
.background(theme.systemBackgroundColor)
.errorAlert(error: $error)
.overlay {
Group {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct AudiobookShelfDisconnectedView: View {
)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
.onAppear {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
focusedField = .serverUrl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct HardcoverSettingsView: View {
.foregroundStyle(theme.secondaryColor)
}
}
.listRowBackground(theme.tertiarySystemBackgroundColor)

Section {
Toggle("hardcover_auto_match_books".localized, isOn: $viewModel.autoMatch)
Expand All @@ -59,6 +60,7 @@ struct HardcoverSettingsView: View {
Text("hardcover_automation_description".localized)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)

Section {
VStack(alignment: .leading, spacing: 8) {
Expand Down Expand Up @@ -86,6 +88,7 @@ struct HardcoverSettingsView: View {
Text("hardcover_progress_tracking_footer".localized)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
.navigationBarTitleDisplayMode(.inline)

if viewModel.showUnlinkButton {
Expand All @@ -100,7 +103,7 @@ struct HardcoverSettingsView: View {
}
}
.scrollContentBackground(.hidden)
.background(theme.systemGroupedBackgroundColor)
.background(theme.systemBackgroundColor)
.toolbar {
navigationBar
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct JellyfinConnectionView: View {
}
}
.scrollContentBackground(.hidden)
.background(theme.systemGroupedBackgroundColor)
.background(theme.systemBackgroundColor)
.errorAlert(error: $error)
.overlay {
Group {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ struct JellyfinDisconnectedView: View {
)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
.onAppear {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
focusedField = .serverUrl
Expand Down
1 change: 1 addition & 0 deletions BookPlayer/Profile/Account/AccountDeleteSectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ struct AccountDeleteSectionView: View {
}
}
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}
1 change: 1 addition & 0 deletions BookPlayer/Profile/Account/AccountLogoutSectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct AccountLogoutSectionView: View {
}
}
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ struct AccountManageProSectionView: View {
}
}
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
1 change: 1 addition & 0 deletions BookPlayer/Profile/Account/AccountPasskeySectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct AccountPasskeySectionView: View {
Text("Passkey")
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
.onAppear {
Task {
await loadPasskey()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct AccountTermsConditionsSectionView: View {
}
}
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
2 changes: 1 addition & 1 deletion BookPlayer/Profile/Account/AccountView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct AccountView: View {
.navigationTitle(accountService.account.email)
.navigationBarTitleDisplayMode(.inline)
.miniPlayerSafeAreaInset()
.applyListStyle(with: theme, background: theme.systemGroupedBackgroundColor)
.applyListStyle(with: theme, background: theme.systemBackgroundColor)
.errorAlert(error: $loadingState.error)
.loadingOverlay(loadingState.show)
.alert("Delete Account", isPresented: $showDeleteAlert) {
Expand Down
4 changes: 3 additions & 1 deletion BookPlayer/Profile/Profile/ProfileCardSectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import SwiftUI

struct ProfileCardSectionView: View {
@Environment(\.accountService) private var accountService

@EnvironmentObject private var theme: ThemeViewModel

var action: () -> Void

var body: some View {
Expand All @@ -20,6 +21,7 @@ struct ProfileCardSectionView: View {
ProfileCardView(email: accountService.account.email)
}
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
2 changes: 1 addition & 1 deletion BookPlayer/Profile/Profile/ProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct ProfileView: View {
}
}
.miniPlayerSafeAreaInset()
.applyListStyle(with: theme, background: theme.systemGroupedBackgroundColor)
.applyListStyle(with: theme, background: theme.systemBackgroundColor)
.navigationTitle("profile_title")
.navigationBarTitleDisplayMode(.inline)
.navigationDestination(for: ProfileScreen.self) { destination in
Expand Down
2 changes: 1 addition & 1 deletion BookPlayer/Profile/Profile/QueuedSyncTasksView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct QueuedSyncTasksView: View {
}
}
.scrollContentBackground(.hidden)
.background(theme.systemGroupedBackgroundColor)
.background(theme.systemBackgroundColor)
.toolbarColorScheme(theme.useDarkVariant ? .dark : .light, for: .navigationBar)
.navigationTitle("tasks_title")
.navigationBarTitleDisplayMode(.inline)
Expand Down
2 changes: 1 addition & 1 deletion BookPlayer/Search/SearchView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct SearchView: View {
}
}
.miniPlayerSafeAreaInset()
.applyListStyle(with: theme, background: theme.systemGroupedBackgroundColor)
.applyListStyle(with: theme, background: theme.systemBackgroundColor)
.navigationTitle("search_title".localized)
.searchable(
text: $viewModel.searchText,
Expand Down
3 changes: 2 additions & 1 deletion BookPlayer/Settings/Autolock/SettingsAutolockView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ struct SettingsAutolockView: View {
Text("settings_autolock_description".localized)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
.scrollContentBackground(.hidden)
.background(theme.systemGroupedBackgroundColor)
.background(theme.systemBackgroundColor)
.navigationTitle(viewModel.navigationTitle)
.navigationBarTitleDisplayMode(.inline)
}
Expand Down
3 changes: 2 additions & 1 deletion BookPlayer/Settings/Autoplay/SettingsAutoplayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ struct SettingsAutoplayView: View {
Text("settings_autoplay_description".localized)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
.scrollContentBackground(.hidden)
.background(theme.systemGroupedBackgroundColor)
.background(theme.systemBackgroundColor)
.navigationTitle(viewModel.navigationTitle)
.navigationBarTitleDisplayMode(.inline)
}
Expand Down
3 changes: 2 additions & 1 deletion BookPlayer/Settings/Icons/SettingsAppIconsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ struct SettingsAppIconsView: View {
ForEach(icons) { item in
AppIconView(icon: item)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
.environment(\.loadingState, loadingState)
.errorAlert(error: $loadingState.error)
.scrollContentBackground(.hidden)
.background(theme.systemGroupedBackgroundColor)
.background(theme.systemBackgroundColor)
.navigationTitle("settings_app_icon_title")
.navigationBarTitleDisplayMode(.inline)
.alert("purchases_restored_title", isPresented: $showRestoredAlert) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ struct AutoSleepTimerSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct BoostVolumeSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ struct GlobalSpeedSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct ListOptionsSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ struct ProgressLabelsSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}

func handleValueUpdated() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct ProgressSeekingSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct SettingsPlayerControlsView: View {
@StateObject var theme = ThemeViewModel()

var body: some View {
Form {
List {
SkipIntervalsSectionView()
SmartRewindSectionView()
AutoSleepTimerSectionView()
Expand All @@ -22,10 +22,10 @@ struct SettingsPlayerControlsView: View {
ListOptionsSectionView()
ProgressLabelsSectionView()
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
.environmentObject(theme)
.scrollContentBackground(.hidden)
.background(theme.systemBackgroundColor)
.listRowBackground(theme.systemGroupedBackgroundColor)
.navigationTitle("settings_controls_title")
.navigationBarTitleDisplayMode(.inline)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ struct SkipIntervalsSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct SmartRewindSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ struct SettingsAppearanceSectionView: View {
.bpFont(.subheadline)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ struct SettingsCreditsSectionView: View {
Section {
NavigationLink("settings_credits_title", value: SettingsScreen.credits)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct SettingsIntegrationsSectionView: View {
.bpFont(.subheadline)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct SettingsPlaybackSectionView: View {
.bpFont(.subheadline)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct SettingsPrivacySectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ struct SettingsProBannerSectionView: View {
}
}
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct SettingsShortcutsSectionView: View {
.bpFont(.subheadline)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ struct SettingsSupportSectionView: View {
.bpFont(.caption)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}

private var appVersion: String {
Expand Down
2 changes: 1 addition & 1 deletion BookPlayer/Settings/Sections/SettingsTipJarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct SettingsTipJarView: View {
}
.errorAlert(error: $loadingState.error)
.padding(.horizontal, Spacing.M)
.background(theme.systemGroupedBackgroundColor)
.background(theme.systemBackgroundColor)
.environment(\.loadingState, loadingState)
.navigationTitle("settings_tip_jar_title")
.navigationBarTitleDisplayMode(.inline)
Expand Down
6 changes: 5 additions & 1 deletion BookPlayer/Settings/Sections/SettingsTipOptionsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ import SwiftUI

struct SettingsTipOptionsView: View {
let purchaseCompleted: () -> Void

@EnvironmentObject var theme: ThemeViewModel

var body: some View {
HStack(spacing: 21) {
SettingsTipView(tipOption: .kind, purchaseCompleted: purchaseCompleted)
.frame(width: 100)
.background(theme.tertiarySystemBackgroundColor)
SettingsTipView(tipOption: .excellent, purchaseCompleted: purchaseCompleted)
.frame(width: 100)
.background(theme.tertiarySystemBackgroundColor)
SettingsTipView(tipOption: .incredible, purchaseCompleted: purchaseCompleted)
.frame(width: 100)
.background(theme.tertiarySystemBackgroundColor)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ struct SettingsiCloudSectionView: View {
.bpFont(.subheadline)
.foregroundStyle(theme.secondaryColor)
}
.listRowBackground(theme.tertiarySystemBackgroundColor)
}

func handleUpdate(_ flag: Bool) -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion BookPlayer/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct SettingsView: View {
.environment(\.loadingState, loadingState)
.navigationTitle("settings_title")
.navigationBarTitleDisplayMode(.inline)
.applyListStyle(with: theme, background: theme.systemGroupedBackgroundColor)
.applyListStyle(with: theme, background: theme.systemBackgroundColor)
.miniPlayerSafeAreaInset()
.sheet(isPresented: $showMailModal) {
SettingsMailView(
Expand Down
Loading