diff options
| author | Jeff Carr <[email protected]> | 2025-02-12 00:19:15 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-12 00:19:15 -0600 |
| commit | 0a6027244078ce36de31af64dfd01e561420d4e5 (patch) | |
| tree | 1542d1906d744e54b5326d115cb0c22c98812d9c /treeDraw.go | |
| parent | a575a08bccc666c776cfb5192528249039dcfbed (diff) | |
working on button disable
Diffstat (limited to 'treeDraw.go')
| -rw-r--r-- | treeDraw.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/treeDraw.go b/treeDraw.go index 1f3ab11..52fb416 100644 --- a/treeDraw.go +++ b/treeDraw.go @@ -182,6 +182,19 @@ func (tk *guiWidget) drawView() { } } + switch tk.node.WidgetType { + case widget.Button: + if tk.node.IsEnabled() { + if tk.isWindowDense() && tk.isInGrid() { + tk.setColorButtonDense() + } else { + tk.setColorButton() + } + } else { + tk.setColorDisable() + } + default: + } // if you don't do this here, it will be black & white only if tk.color != nil { tk.v.FrameColor = tk.color.frame |
