···224224 fontColor,
225225 )
226226 currentLabel := item.label(item.values[item.selectedIdx])
227227+228228+ // if value is a color value, use it as the font color
229229+ if _, ok := item.values[item.selectedIdx].(ff.Color); ok {
230230+ fontColor = item.values[item.selectedIdx].(ff.Color)
231231+ }
232232+227233 ff.DrawText(
228234 currentLabel,
229235 FONT,