start debugging combobox & dropdown
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f7c484328b
commit
663704e3ec
4
add.go
4
add.go
|
@ -58,6 +58,10 @@ func addWidget(n *tree.Node) {
|
|||
nw.color = &colorButton
|
||||
case widget.Checkbox:
|
||||
nw.color = &colorCheckbox
|
||||
case widget.Dropdown:
|
||||
nw.color = &colorDropdown
|
||||
case widget.Combobox:
|
||||
nw.color = &colorCombobox
|
||||
case widget.Box:
|
||||
nw.color = &colorBox
|
||||
nw.isFake = true
|
||||
|
|
20
color.go
20
color.go
|
@ -75,11 +75,29 @@ var colorButton colorT = colorT{
|
|||
name: "normal button",
|
||||
}
|
||||
|
||||
var colorDropdown colorT = colorT{
|
||||
frame: gocui.ColorYellow,
|
||||
fg: none,
|
||||
bg: gocui.ColorWhite,
|
||||
selFg: gocui.ColorYellow,
|
||||
selBg: gocui.ColorBlack,
|
||||
name: "normal button",
|
||||
}
|
||||
|
||||
var colorCombobox colorT = colorT{
|
||||
frame: gocui.ColorBlue,
|
||||
fg: none,
|
||||
bg: gocui.ColorWhite,
|
||||
selFg: gocui.ColorBlue,
|
||||
selBg: gocui.ColorBlack,
|
||||
name: "normal button",
|
||||
}
|
||||
|
||||
var colorCheckbox colorT = colorT{
|
||||
frame: gocui.ColorRed,
|
||||
fg: none,
|
||||
bg: gocui.ColorWhite,
|
||||
selFg: gocui.ColorGreen,
|
||||
selFg: gocui.ColorRed,
|
||||
selBg: gocui.ColorBlack,
|
||||
name: "normal checkbox",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue