PrefUI // Use previous method to enumerate candidate font sizes.
This commit is contained in:
parent
5e5aa17a08
commit
dfc459102c
|
@ -51,8 +51,6 @@ struct suiPrefPaneGeneral: View {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let enabledFontSizes = [12, 14, 16, 17, 18, 20, 22, 24, 32, 64, 96]
|
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ScrollView {
|
ScrollView {
|
||||||
Preferences.Container(contentWidth: contentWidth) {
|
Preferences.Container(contentWidth: contentWidth) {
|
||||||
|
@ -63,9 +61,21 @@ struct suiPrefPaneGeneral: View {
|
||||||
mgrPrefs.candidateListTextSize = CGFloat(selCandidateUIFontSize)
|
mgrPrefs.candidateListTextSize = CGFloat(selCandidateUIFontSize)
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
ForEach(0...(enabledFontSizes.count - 1), id: \.self) { id in
|
Group {
|
||||||
Text(String(enabledFontSizes[id])).tag(enabledFontSizes[id])
|
Text("12").tag(12)
|
||||||
}.id(UUID())
|
Text("14").tag(14)
|
||||||
|
Text("16").tag(16)
|
||||||
|
Text("17").tag(17)
|
||||||
|
Text("18").tag(18)
|
||||||
|
Text("20").tag(20)
|
||||||
|
Text("22").tag(22)
|
||||||
|
Text("24").tag(24)
|
||||||
|
}
|
||||||
|
Group {
|
||||||
|
Text("32").tag(32)
|
||||||
|
Text("64").tag(64)
|
||||||
|
Text("96").tag(96)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.labelsHidden()
|
.labelsHidden()
|
||||||
.frame(width: 120.0)
|
.frame(width: 120.0)
|
||||||
|
|
Loading…
Reference in New Issue