Skip to content

Commit

Permalink
GUI
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed May 30, 2024
1 parent 3a17ac1 commit 01901b2
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions iOSClient/Settings/Advanced/NCSettingsAdvanced.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ struct NCSettingsAdvanced: View {
.tint(Color(NCBrandColor.shared.brandElement))
.onChange(of: model.showHiddenFiles) { _ in
model.updateShowHiddenFiles()
}
.font(.system(size: 16))
}
.font(.system(size: 16))
}, footer: { })
// Most Compatible & Enable Live Photo
Section(content: {
Toggle(NSLocalizedString("_format_compatibility_", comment: ""), isOn: $model.mostCompatible)
.tint(Color(NCBrandColor.shared.brandElement))
.onChange(of: model.mostCompatible) { _ in
model.updateMostCompatible()
}
.font(.system(size: 16))
}
.font(.system(size: 16))
Toggle(NSLocalizedString("_upload_mov_livephoto_", comment: ""), isOn: $model.livePhoto)
.tint(Color(NCBrandColor.shared.brandElement))
.onChange(of: model.livePhoto) { _ in
model.updateLivePhoto()
}
.font(.system(size: 16))
}
.font(.system(size: 16))
}, footer: {
(
Text(NSLocalizedString("_format_compatibility_footer_", comment: ""))
Expand All @@ -72,8 +72,8 @@ struct NCSettingsAdvanced: View {
.tint(Color(NCBrandColor.shared.brandElement))
.onChange(of: model.removeFromCameraRoll) { _ in
model.updateRemoveFromCameraRoll()
}
.font(.system(size: 16))
}
.font(.system(size: 16))
}, footer: {
Text(NSLocalizedString("_remove_photo_CameraRoll_desc_", comment: ""))
.font(.system(size: 12))
Expand All @@ -86,8 +86,8 @@ struct NCSettingsAdvanced: View {
.tint(Color(NCBrandColor.shared.brandElement))
.onChange(of: model.appIntegration) { _ in
model.updateAppIntegration()
}
.font(.system(size: 16))
}
.font(.system(size: 16))
}, footer: {
Text(NSLocalizedString("_disable_files_app_footer_", comment: ""))
.font(.system(size: 12))
Expand All @@ -97,19 +97,11 @@ struct NCSettingsAdvanced: View {
// Section: Privacy
if !NCBrandOptions.shared.disable_crash_service {
Section(content: {
HStack {
Image(systemName: "ladybug")
.resizable()
.scaledToFit()
.font(Font.system(.body).weight(.light))
.frame(width: 25, height: 25)
.foregroundColor(Color(NCBrandColor.shared.iconImageColor))
Toggle(NSLocalizedString("_crashservice_title_", comment: ""), isOn: $model.crashReporter)
.tint(Color(NCBrandColor.shared.brandElement))
.onChange(of: model.crashReporter) { _ in
model.updateCrashReporter()
showCrashReporter.toggle()
}
Toggle(NSLocalizedString("_crashservice_title_", comment: ""), isOn: $model.crashReporter)
.tint(Color(NCBrandColor.shared.brandElement))
.onChange(of: model.crashReporter) { _ in
model.updateCrashReporter()
showCrashReporter.toggle()
}
.font(.system(size: 16))
.alert(NSLocalizedString("_crashservice_title_", comment: ""), isPresented: $showCrashReporter, actions: {
Expand Down

0 comments on commit 01901b2

Please sign in to comment.