add other settings

This commit is contained in:
cheykrym 2025-12-12 00:42:26 +03:00
parent beb7af003b
commit e2a46cb20b

View File

@ -2,6 +2,7 @@ import SwiftUI
struct OtherSettingsView: View {
@AppStorage("messengerModeEnabled") private var isMessengerModeEnabled: Bool = false
@AppStorage("chatBubbleDecorationsEnabled") private var areBubbleDecorationsEnabled: Bool = true
var body: some View {
Form {
@ -15,6 +16,17 @@ struct OtherSettingsView: View {
.foregroundColor(.secondary)
}
.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: "")))
}