diff options
| author | Jeff Carr <[email protected]> | 2025-03-25 11:44:06 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-25 13:17:00 -0500 | 
| commit | 9669a63c5d7a2ed5727b2c6b47095308edd002d5 (patch) | |
| tree | f61cfdd2e8742cf35efe4c6e3d22aad6772df5d6 | |
| parent | bf250b5ac6c13e721ee27c0ad138d43318dd5c5d (diff) | |
use isDense() everywherev0.22.43
| -rw-r--r-- | place.go | 2 | ||||
| -rw-r--r-- | size.go | 6 | ||||
| -rw-r--r-- | widgetDraw.go | 2 | 
3 files changed, 5 insertions, 5 deletions
@@ -143,7 +143,7 @@ func (tk *guiWidget) placeWidgets(startW int, startH int) (int, int) {  		// tk.dumpWidget(fmt.Sprintf("PlaceGroup(%d,%d)", maxW, newH))  		return maxW, newH  	case widget.Button: -		if tk.isWindowDense() && tk.isInGrid() { +		if tk.isDense() && tk.isInGrid() {  			tk.frame = false  			// tk.color = nil  			// tk.defaultColor = nil @@ -67,7 +67,7 @@ func (tk *guiWidget) Size() (int, int) {  	case widget.Checkbox:  		return len(tk.String()) + 2, 3 // TODO: compute this based on 'window dense'  	case widget.Button: -		if tk.isWindowDense() { +		if tk.isDense() {  			return len(tk.String()) + 2, 0  		}  		return len(tk.String()) + 2, 3 // TODO: compute this based on 'window dense' @@ -244,7 +244,7 @@ func (tk *guiWidget) setFullSize() bool {  	if tk.WidgetType() == widget.Button {  		tk.full.h1 = tk.full.h0 + 1  	} -	if tk.isWindowDense() && tk.isInGrid() { +	if tk.isDense() && tk.isInGrid() {  		tk.full.h1 = tk.full.h0  	}  	if changed { @@ -309,7 +309,7 @@ func (tk *guiWidget) buttonFullSize() rectType {  	tk.full.h1 = r.h1  	// total hack. fix this somewhere eventually correctly -	if tk.isWindowDense() { // total hack. fix this somewhere eventually correctly +	if tk.isDense() { // total hack. fix this somewhere eventually correctly  		tk.full.h0 += 1         // total hack. fix this somewhere eventually correctly  		tk.full.h1 = tk.full.h0 // total hack. fix this somewhere eventually correctly  	} diff --git a/widgetDraw.go b/widgetDraw.go index 6da9fcd..0d99d4a 100644 --- a/widgetDraw.go +++ b/widgetDraw.go @@ -193,7 +193,7 @@ func (tk *guiWidget) drawView() {  	switch tk.WidgetType() {  	case widget.Button:  		if tk.IsEnabled() { -			if tk.isWindowDense() && tk.isInGrid() { +			if tk.isDense() && tk.isInGrid() {  				tk.setColorButtonDense()  			} else {  				tk.setColorButton()  | 
