start debugging combobox & dropdown

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-01 18:28:59 -06:00
parent f7c484328b
commit 663704e3ec
2 changed files with 23 additions and 1 deletions

4
add.go
View File

@ -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

View File

@ -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",
}