PrefUI // Bind respectClientAccentColor().
This commit is contained in:
parent
d30013a552
commit
334e6e0ad5
|
@ -23,6 +23,9 @@ public struct VwrSettingsPaneCandidates: View {
|
||||||
@AppStorage(wrappedValue: false, UserDef.kCandidateWindowShowOnlyOneLine.rawValue)
|
@AppStorage(wrappedValue: false, UserDef.kCandidateWindowShowOnlyOneLine.rawValue)
|
||||||
private var candidateWindowShowOnlyOneLine: Bool
|
private var candidateWindowShowOnlyOneLine: Bool
|
||||||
|
|
||||||
|
@AppStorage(wrappedValue: true, UserDef.kRespectClientAccentColor.rawValue)
|
||||||
|
private var respectClientAccentColor: Bool
|
||||||
|
|
||||||
@AppStorage(wrappedValue: false, UserDef.kAlwaysExpandCandidateWindow.rawValue)
|
@AppStorage(wrappedValue: false, UserDef.kAlwaysExpandCandidateWindow.rawValue)
|
||||||
private var alwaysExpandCandidateWindow: Bool
|
private var alwaysExpandCandidateWindow: Bool
|
||||||
|
|
||||||
|
@ -133,6 +136,16 @@ public struct VwrSettingsPaneCandidates: View {
|
||||||
)
|
)
|
||||||
.disabled(candidateWindowShowOnlyOneLine)
|
.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:"))
|
// MARK: (header: Text("Misc Settings:"))
|
||||||
|
|
Loading…
Reference in New Issue