From 0a6027244078ce36de31af64dfd01e561420d4e5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 12 Feb 2025 00:19:15 -0600 Subject: working on button disable --- place.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'place.go') diff --git a/place.go b/place.go index 0eb0074..2cffe34 100644 --- a/place.go +++ b/place.go @@ -145,9 +145,15 @@ func (tk *guiWidget) placeWidgets(startW int, startH int) (int, int) { case widget.Button: if tk.isWindowDense() && tk.isInGrid() { tk.frame = false - tk.color = nil - tk.defaultColor = nil - tk.setColorButtonDense() + // tk.color = nil + // tk.defaultColor = nil + /* + if tk.node.IsEnabled() { + tk.setColorButtonDense() + } else { + tk.setColorDisable() + } + */ // if tk.full.Height() > 0 { tk.full.h1 = tk.full.h0 // } -- cgit v1.2.3