mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix syntax
This commit is contained in:
parent
d5464186af
commit
371471ad81
@ -51,31 +51,31 @@ final class ImportExportSettingsModel: ObservableObject {
|
|||||||
var label: String {
|
var label: String {
|
||||||
switch self {
|
switch self {
|
||||||
case .browsingSettings:
|
case .browsingSettings:
|
||||||
"Browsing"
|
return "Browsing"
|
||||||
case .playerSettings:
|
case .playerSettings:
|
||||||
"Player"
|
return "Player"
|
||||||
case .controlsSettings:
|
case .controlsSettings:
|
||||||
"Controls"
|
return "Controls"
|
||||||
case .qualitySettings:
|
case .qualitySettings:
|
||||||
"Quality"
|
return "Quality"
|
||||||
case .historySettings:
|
case .historySettings:
|
||||||
"History"
|
return "History"
|
||||||
case .sponsorBlockSettings:
|
case .sponsorBlockSettings:
|
||||||
"SponsorBlock"
|
return "SponsorBlock"
|
||||||
case .locationsSettings:
|
case .locationsSettings:
|
||||||
"Public Locations"
|
return "Public Locations"
|
||||||
case .instances:
|
case .instances:
|
||||||
"Custom Locations"
|
return "Custom Locations"
|
||||||
case .accounts:
|
case .accounts:
|
||||||
"Accounts"
|
return "Accounts"
|
||||||
case .accountsUnencryptedPasswords:
|
case .accountsUnencryptedPasswords:
|
||||||
"Accounts passwords (unencrypted)"
|
return "Accounts passwords (unencrypted)"
|
||||||
case .advancedSettings:
|
case .advancedSettings:
|
||||||
"Advanced"
|
return "Advanced"
|
||||||
case .recentlyOpened:
|
case .recentlyOpened:
|
||||||
"Recents"
|
return "Recents"
|
||||||
case .otherData:
|
case .otherData:
|
||||||
"Other data"
|
return "Other data"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ struct ExportSettings: View {
|
|||||||
Text(group.label)
|
Text(group.label)
|
||||||
Spacer()
|
Spacer()
|
||||||
Image(systemName: "checkmark")
|
Image(systemName: "checkmark")
|
||||||
.foregroundColor(.accent)
|
.foregroundColor(.accentColor)
|
||||||
.opacity(isGroupInSelectedGroups ? 1 : 0)
|
.opacity(isGroupInSelectedGroups ? 1 : 0)
|
||||||
}
|
}
|
||||||
.animation(nil, value: isGroupInSelectedGroups)
|
.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")
|
Label(model.isExportInProgress ? "Export in progress..." : "Export...", systemImage: model.isExportInProgress ? "fireworks" : "square.and.arrow.up")
|
||||||
.animation(nil, value: model.isExportInProgress)
|
.animation(nil, value: model.isExportInProgress)
|
||||||
#if !os(macOS)
|
#if !os(macOS)
|
||||||
.foregroundColor(.accent)
|
.foregroundColor(.accentColor)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
#endif
|
#endif
|
||||||
|
@ -108,7 +108,7 @@ struct ImportSettingsSheetView: View {
|
|||||||
Text(group.label)
|
Text(group.label)
|
||||||
Spacer()
|
Spacer()
|
||||||
Image(systemName: "checkmark")
|
Image(systemName: "checkmark")
|
||||||
.foregroundColor(.accent)
|
.foregroundColor(.accentColor)
|
||||||
.opacity(isChecked ? 1 : 0)
|
.opacity(isChecked ? 1 : 0)
|
||||||
}
|
}
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
|
@ -286,7 +286,7 @@ struct SettingsView: View {
|
|||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
}
|
}
|
||||||
.foregroundColor(.accent)
|
.foregroundColor(.accentColor)
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
|
|
||||||
NavigationLink(destination: LazyView(ExportSettings())) {
|
NavigationLink(destination: LazyView(ExportSettings())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user