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:
parent
db162feddd
commit
e1950bf756
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user