mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 13:28:50 +01:00
Fix #1859
This commit is contained in:
parent
6d12f2528d
commit
27da37e9ec
@ -255,21 +255,7 @@ struct DisplaySettingsView: View {
|
||||
private var resetSection: some View {
|
||||
Section {
|
||||
Button {
|
||||
theme.followSystemColorScheme = true
|
||||
theme.applySet(set: colorScheme == .dark ? .iceCubeDark : .iceCubeLight)
|
||||
theme.avatarShape = .circle
|
||||
theme.avatarPosition = .leading
|
||||
theme.statusActionsDisplay = .full
|
||||
theme.displayFullUsername = false
|
||||
theme.statusDisplayStyle = .large
|
||||
theme.lineSpacing = 1.2
|
||||
theme.fontSizeScale = 1.0
|
||||
|
||||
localValues.tintColor = theme.tintColor
|
||||
localValues.primaryBackgroundColor = theme.primaryBackgroundColor
|
||||
localValues.secondaryBackgroundColor = theme.secondaryBackgroundColor
|
||||
localValues.labelColor = theme.labelColor
|
||||
|
||||
theme.restoreDefault()
|
||||
} label: {
|
||||
Text("settings.display.restore")
|
||||
}
|
||||
|
@ -258,6 +258,22 @@ import SwiftUI
|
||||
|
||||
public static let shared = Theme()
|
||||
|
||||
public func restoreDefault() {
|
||||
applySet(set: themeStorage.selectedScheme == .dark ? .iceCubeDark : .iceCubeLight)
|
||||
isThemePreviouslySet = true
|
||||
avatarPosition = .leading
|
||||
avatarShape = .circle
|
||||
storedSet = selectedSet
|
||||
statusActionsDisplay = .full
|
||||
statusDisplayStyle = .large
|
||||
followSystemColorScheme = true
|
||||
displayFullUsername = false
|
||||
lineSpacing = 1.2
|
||||
fontSizeScale = 1
|
||||
chosenFontData = nil
|
||||
statusActionSecondary = .share
|
||||
}
|
||||
|
||||
private init() {
|
||||
isThemePreviouslySet = themeStorage.isThemePreviouslySet
|
||||
selectedScheme = themeStorage.selectedScheme
|
||||
|
Loading…
Reference in New Issue
Block a user