set checkbox color
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
11ebc77505
commit
6fb1a5802a
2
add.go
2
add.go
|
@ -56,6 +56,8 @@ func addWidget(n *tree.Node) {
|
|||
return
|
||||
case widget.Button:
|
||||
nw.color = &colorButton
|
||||
case widget.Checkbox:
|
||||
nw.color = &colorCheckbox
|
||||
case widget.Box:
|
||||
nw.color = &colorBox
|
||||
nw.isFake = true
|
||||
|
|
19
color.go
19
color.go
|
@ -54,7 +54,6 @@ var colorActiveW colorT = colorT{none, none, powdererBlue, none, powdererBlue, "
|
|||
var colorTab colorT = colorT{gocui.ColorBlue, gocui.ColorBlue, none, none, powdererBlue, "normal tab"}
|
||||
var colorActiveT colorT = colorT{gocui.ColorBlue, none, powdererBlue, none, powdererBlue, "active tab"}
|
||||
|
||||
var colorButton colorT = colorT{gocui.ColorGreen, none, gocui.ColorWhite, gocui.ColorGreen, gocui.ColorBlack, "normal button"}
|
||||
var colorLabel colorT = colorT{none, none, superLightGrey, none, superLightGrey, "normal label"}
|
||||
var colorGroup colorT = colorT{none, none, superLightGrey, none, superLightGrey, "normal group"}
|
||||
|
||||
|
@ -67,6 +66,24 @@ var colorDisabled colorT = colorT{
|
|||
name: "disabled widget",
|
||||
}
|
||||
|
||||
var colorButton colorT = colorT{
|
||||
frame: gocui.ColorGreen,
|
||||
fg: none,
|
||||
bg: gocui.ColorWhite,
|
||||
selFg: gocui.ColorGreen,
|
||||
selBg: gocui.ColorBlack,
|
||||
name: "normal button",
|
||||
}
|
||||
|
||||
var colorCheckbox colorT = colorT{
|
||||
frame: gocui.ColorRed,
|
||||
fg: none,
|
||||
bg: gocui.ColorWhite,
|
||||
selFg: gocui.ColorGreen,
|
||||
selBg: gocui.ColorBlack,
|
||||
name: "normal checkbox",
|
||||
}
|
||||
|
||||
// widget debugging colors. these widgets aren't displayed unless you are debugging
|
||||
var colorRoot colorT = colorT{gocui.ColorRed, none, powdererBlue, none, gocui.ColorBlue, "debug root"}
|
||||
var colorFlag colorT = colorT{gocui.ColorRed, none, powdererBlue, none, gocui.ColorGreen, "debug flag"}
|
||||
|
|
Loading…
Reference in New Issue