summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 20:34:29 -0600
committerJeff Carr <[email protected]>2025-02-06 20:34:29 -0600
commit5d1a3b2578580bd2d41e47d3ab3e6f48411c8613 (patch)
tree2070fbb66ed44f04c41e7ddc09617009df347274 /window.go
parente39bcafb78d8388ee5bc77366efbab4f3717466c (diff)
finally. dense window view
Diffstat (limited to 'window.go')
-rw-r--r--window.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/window.go b/window.go
index 7d612e4..57950a1 100644
--- a/window.go
+++ b/window.go
@@ -15,6 +15,9 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
if tk.node.WidgetType != widget.Window {
return
}
+ if tk.full.Height() > 40 {
+ tk.window.dense = true
+ }
// pin the window to (w,h)
tk.gocuiSize.w0 = w
tk.gocuiSize.h0 = h