Let system uppercase section headers

This commit is contained in:
Shadowfacts 2020-08-16 14:58:02 -04:00
parent ee20c95a5d
commit 059f7307b3
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
4 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ struct AdvancedPrefsView : View {
} }
var automationSection: some View { var automationSection: some View {
Section(header: Text("AUTOMATION")) { Section(header: Text("Automation")) {
NavigationLink(destination: SilentActionPrefs()) { NavigationLink(destination: SilentActionPrefs()) {
Text("Silent Action Permissions") Text("Silent Action Permissions")
} }
@ -44,7 +44,7 @@ struct AdvancedPrefsView : View {
} }
var cachingSection: some View { var cachingSection: some View {
Section(header: Text("CACHING")) { Section(header: Text("Caching")) {
Button(action: clearCache) { Button(action: clearCache) {
Text("Clear Cache") Text("Clear Cache")
}.foregroundColor(.red) }.foregroundColor(.red)

View File

@ -18,7 +18,7 @@ struct BehaviorPrefsView: View {
} }
var linksSection: some View { var linksSection: some View {
Section(header: Text("LINKS")) { Section(header: Text("Links")) {
Toggle(isOn: $preferences.openLinksInApps) { Toggle(isOn: $preferences.openLinksInApps) {
Text("Open Links in Apps") Text("Open Links in Apps")
} }

View File

@ -20,7 +20,7 @@ struct ComposingPrefsView: View {
} }
var composingSection: some View { var composingSection: some View {
Section(header: Text("COMPOSING")) { Section(header: Text("Composing")) {
Picker(selection: $preferences.defaultPostVisibility, label: Text("Default Post Visibility")) { Picker(selection: $preferences.defaultPostVisibility, label: Text("Default Post Visibility")) {
ForEach(Status.Visibility.allCases, id: \.self) { visibility in ForEach(Status.Visibility.allCases, id: \.self) { visibility in
HStack { HStack {
@ -41,7 +41,7 @@ struct ComposingPrefsView: View {
} }
var replyingSection: some View { var replyingSection: some View {
Section(header: Text("REPLYING")) { Section(header: Text("Replying")) {
Picker(selection: $preferences.contentWarningCopyMode, label: Text("Copy Content Warnings")) { Picker(selection: $preferences.contentWarningCopyMode, label: Text("Copy Content Warnings")) {
Text("As-is").tag(ContentWarningCopyMode.asIs) Text("As-is").tag(ContentWarningCopyMode.asIs)
Text("Prepend 're: '").tag(ContentWarningCopyMode.prependRe) Text("Prepend 're: '").tag(ContentWarningCopyMode.prependRe)

View File

@ -18,7 +18,7 @@ struct MediaPrefsView: View {
} }
var viewingSection: some View { var viewingSection: some View {
Section(header: Text("VIEWING")) { Section(header: Text("Viewing")) {
Toggle(isOn: $preferences.blurAllMedia) { Toggle(isOn: $preferences.blurAllMedia) {
Text("Blur All Media") Text("Blur All Media")
} }