summaryrefslogtreecommitdiff
path: root/treeDraw.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-12 00:19:15 -0600
committerJeff Carr <[email protected]>2025-02-12 00:19:15 -0600
commit0a6027244078ce36de31af64dfd01e561420d4e5 (patch)
tree1542d1906d744e54b5326d115cb0c22c98812d9c /treeDraw.go
parenta575a08bccc666c776cfb5192528249039dcfbed (diff)
working on button disable
Diffstat (limited to 'treeDraw.go')
-rw-r--r--treeDraw.go13
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