Fix syntax

This commit is contained in:
Arkadiusz Fal 2024-02-02 11:38:01 +01:00
parent d5464186af
commit 371471ad81
4 changed files with 17 additions and 17 deletions

View File

@ -51,31 +51,31 @@ final class ImportExportSettingsModel: ObservableObject {
var label: String {
switch self {
case .browsingSettings:
"Browsing"
return "Browsing"
case .playerSettings:
"Player"
return "Player"
case .controlsSettings:
"Controls"
return "Controls"
case .qualitySettings:
"Quality"
return "Quality"
case .historySettings:
"History"
return "History"
case .sponsorBlockSettings:
"SponsorBlock"
return "SponsorBlock"
case .locationsSettings:
"Public Locations"
return "Public Locations"
case .instances:
"Custom Locations"
return "Custom Locations"
case .accounts:
"Accounts"
return "Accounts"
case .accountsUnencryptedPasswords:
"Accounts passwords (unencrypted)"
return "Accounts passwords (unencrypted)"
case .advancedSettings:
"Advanced"
return "Advanced"
case .recentlyOpened:
"Recents"
return "Recents"
case .otherData:
"Other data"
return "Other data"
}
}
}

View File

@ -73,7 +73,7 @@ struct ExportSettings: View {
Text(group.label)
Spacer()
Image(systemName: "checkmark")
.foregroundColor(.accent)
.foregroundColor(.accentColor)
.opacity(isGroupInSelectedGroups ? 1 : 0)
}
.animation(nil, value: isGroupInSelectedGroups)
@ -122,7 +122,7 @@ struct ExportSettings: View {
Label(model.isExportInProgress ? "Export in progress..." : "Export...", systemImage: model.isExportInProgress ? "fireworks" : "square.and.arrow.up")
.animation(nil, value: model.isExportInProgress)
#if !os(macOS)
.foregroundColor(.accent)
.foregroundColor(.accentColor)
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
#endif

View File

@ -108,7 +108,7 @@ struct ImportSettingsSheetView: View {
Text(group.label)
Spacer()
Image(systemName: "checkmark")
.foregroundColor(.accent)
.foregroundColor(.accentColor)
.opacity(isChecked ? 1 : 0)
}
.contentShape(Rectangle())

View File

@ -286,7 +286,7 @@ struct SettingsView: View {
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
}
.foregroundColor(.accent)
.foregroundColor(.accentColor)
.buttonStyle(.plain)
NavigationLink(destination: LazyView(ExportSettings())) {