summaryrefslogtreecommitdiff
path: root/place.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 /place.go
parenta575a08bccc666c776cfb5192528249039dcfbed (diff)
working on button disable
Diffstat (limited to 'place.go')
-rw-r--r--place.go12
1 files changed, 9 insertions, 3 deletions
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
// }