Skip to content

Commit

Permalink
💄 Use system accent color in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Aug 16, 2023
1 parent 04e34d8 commit 48433ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions Loop/Settings/Views/GeneralSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ struct GeneralSettingsView: View {
self.isAccessibilityAccessGranted = accessibilityAccessManager.requestAccess()
})
.buttonStyle(.link)
.foregroundStyle(Color.accentColor)
.disabled(isAccessibilityAccessGranted)
.help("Refresh the current accessibility permissions")
.onAppear {
Expand Down
8 changes: 4 additions & 4 deletions Loop/Settings/Views/KeybindingSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct KeybindingSettingsView: View {
.font(Font.system(size: 30, weight: .regular))
.frame(width: 60)
}
.foregroundStyle(useSystemAccentColor ? Color.accentColor : accentColor)
.foregroundStyle(Color.accentColor)
}

HStack {
Expand All @@ -95,7 +95,7 @@ struct KeybindingSettingsView: View {
.font(Font.system(size: 30, weight: .regular))
.frame(width: 60)
}
.foregroundStyle(useSystemAccentColor ? Color.accentColor : accentColor)
.foregroundStyle(Color.accentColor)
}

HStack {
Expand All @@ -119,7 +119,7 @@ struct KeybindingSettingsView: View {
.font(Font.system(size: 30, weight: .regular))
.frame(width: 60)
}
.foregroundStyle(useSystemAccentColor ? Color.accentColor : accentColor)
.foregroundStyle(Color.accentColor)
}

HStack {
Expand All @@ -143,7 +143,7 @@ struct KeybindingSettingsView: View {
.font(Font.system(size: 30, weight: .regular))
.frame(width: 60)
}
.foregroundStyle(useSystemAccentColor ? Color.accentColor : accentColor)
.foregroundStyle(Color.accentColor)
}
}
.symbolRenderingMode(.hierarchical)
Expand Down
1 change: 1 addition & 0 deletions Loop/Settings/Views/MoreSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ struct MoreSettingsView: View {
updater.checkForUpdates()
}
.buttonStyle(.link)
.foregroundStyle(Color.accentColor)
}
})
}
Expand Down

0 comments on commit 48433ab

Please sign in to comment.