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
|
nw.color = &colorButton
|
||||||
case widget.Checkbox:
|
case widget.Checkbox:
|
||||||
nw.color = &colorCheckbox
|
nw.color = &colorCheckbox
|
||||||
|
case widget.Dropdown:
|
||||||
|
nw.color = &colorDropdown
|
||||||
|
case widget.Combobox:
|
||||||
|
nw.color = &colorCombobox
|
||||||
case widget.Box:
|
case widget.Box:
|
||||||
nw.color = &colorBox
|
nw.color = &colorBox
|
||||||
nw.isFake = true
|
nw.isFake = true
|
||||||
|
|
20
color.go
20
color.go
|
@ -75,11 +75,29 @@ var colorButton colorT = colorT{
|
||||||
name: "normal button",
|
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{
|
var colorCheckbox colorT = colorT{
|
||||||
frame: gocui.ColorRed,
|
frame: gocui.ColorRed,
|
||||||
fg: none,
|
fg: none,
|
||||||
bg: gocui.ColorWhite,
|
bg: gocui.ColorWhite,
|
||||||
selFg: gocui.ColorGreen,
|
selFg: gocui.ColorRed,
|
||||||
selBg: gocui.ColorBlack,
|
selBg: gocui.ColorBlack,
|
||||||
name: "normal checkbox",
|
name: "normal checkbox",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue