add other settings
This commit is contained in:
parent
beb7af003b
commit
e2a46cb20b
@ -2,6 +2,7 @@ import SwiftUI
|
|||||||
|
|
||||||
struct OtherSettingsView: View {
|
struct OtherSettingsView: View {
|
||||||
@AppStorage("messengerModeEnabled") private var isMessengerModeEnabled: Bool = false
|
@AppStorage("messengerModeEnabled") private var isMessengerModeEnabled: Bool = false
|
||||||
|
@AppStorage("chatBubbleDecorationsEnabled") private var areBubbleDecorationsEnabled: Bool = true
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Form {
|
Form {
|
||||||
@ -15,6 +16,17 @@ struct OtherSettingsView: View {
|
|||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
}
|
}
|
||||||
.padding(.vertical, 8)
|
.padding(.vertical, 8)
|
||||||
|
|
||||||
|
VStack(alignment: .leading, spacing: 4) {
|
||||||
|
Toggle(NSLocalizedString("Рожки и ножки у сообщений", comment: ""), isOn: $areBubbleDecorationsEnabled)
|
||||||
|
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
|
||||||
|
Text(areBubbleDecorationsEnabled
|
||||||
|
? NSLocalizedString("Сообщения будут с рожками и ножками.", comment: "")
|
||||||
|
: NSLocalizedString("Сообщения станут обычными закругленными облачками.", comment: ""))
|
||||||
|
.font(.footnote)
|
||||||
|
.foregroundColor(.secondary)
|
||||||
|
}
|
||||||
|
.padding(.vertical, 8)
|
||||||
}
|
}
|
||||||
.navigationTitle(Text(NSLocalizedString("Другое", comment: "")))
|
.navigationTitle(Text(NSLocalizedString("Другое", comment: "")))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user