mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Fix syntax
This commit is contained in:
parent
d5464186af
commit
371471ad81
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -108,7 +108,7 @@ struct ImportSettingsSheetView: View {
|
||||
Text(group.label)
|
||||
Spacer()
|
||||
Image(systemName: "checkmark")
|
||||
.foregroundColor(.accent)
|
||||
.foregroundColor(.accentColor)
|
||||
.opacity(isChecked ? 1 : 0)
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
|
@ -286,7 +286,7 @@ struct SettingsView: View {
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
.foregroundColor(.accent)
|
||||
.foregroundColor(.accentColor)
|
||||
.buttonStyle(.plain)
|
||||
|
||||
NavigationLink(destination: LazyView(ExportSettings())) {
|
||||
|
Loading…
Reference in New Issue
Block a user