PrefUI // Bind respectClientAccentColor().

This commit is contained in:
ShikiSuen 2023-11-27 22:12:32 +08:00
parent d30013a552
commit 334e6e0ad5
1 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,9 @@ public struct VwrSettingsPaneCandidates: View {
@AppStorage(wrappedValue: false, UserDef.kCandidateWindowShowOnlyOneLine.rawValue)
private var candidateWindowShowOnlyOneLine: Bool
@AppStorage(wrappedValue: true, UserDef.kRespectClientAccentColor.rawValue)
private var respectClientAccentColor: Bool
@AppStorage(wrappedValue: false, UserDef.kAlwaysExpandCandidateWindow.rawValue)
private var alwaysExpandCandidateWindow: Bool
@ -133,6 +136,16 @@ public struct VwrSettingsPaneCandidates: View {
)
.disabled(candidateWindowShowOnlyOneLine)
}
VStack(alignment: .leading) {
Toggle(
LocalizedStringKey(UserDef.kRespectClientAccentColor.metaData?.shortTitle ?? "[i18n]respectClientAccentColor"),
isOn: $respectClientAccentColor
)
Text(
UserDef.kRespectClientAccentColor.metaData?.description?.localized ?? "[i18n]respectClientAccentColor.description"
)
.settingsDescription()
}
}
// MARK: (header: Text("Misc Settings:"))