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

View File

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