1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Checked items are _gray_

This commit is contained in:
Chris Cummer 2018-04-22 22:05:26 -07:00
parent db162feddd
commit e1950bf756

View File

@ -14,6 +14,10 @@ func (widget *Widget) display() {
for idx, item := range widget.list.Items { for idx, item := range widget.list.Items {
foreColor, backColor := "white", "black" foreColor, backColor := "white", "black"
if item.Checked {
foreColor = "gray"
}
if widget.View.HasFocus() && idx == widget.list.selected { if widget.View.HasFocus() && idx == widget.list.selected {
foreColor, backColor = "black", "olive" foreColor, backColor = "black", "olive"
} }