Browse Source

ToolButtons now default to PushButtomMode=True.

Mark Sibly 9 years ago
parent
commit
f81e4a11a5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      modules/mojox/toolbar.monkey2

+ 4 - 1
modules/mojox/toolbar.monkey2

@@ -9,6 +9,8 @@ Class ToolButton Extends Button
 		Super.New( action )
 		Super.New( action )
 		
 		
 		Style=GetStyle( "ToolButton" )
 		Style=GetStyle( "ToolButton" )
+		
+		PushButtonMode=True
 	End
 	End
 	
 	
 End
 End
@@ -26,7 +28,8 @@ Class ToolBar Extends DockingView
 	Method New( axis:Axis )
 	Method New( axis:Axis )
 		Style=GetStyle( "ToolBar" )
 		Style=GetStyle( "ToolBar" )
 		
 		
-		Layout=axis=Axis.X ? "fill-x" Else "fill-y"
+		Layout=(axis=Axis.X ? "fill-x" Else "fill-y")
+
 		Gravity=New Vec2f( 0,0 )
 		Gravity=New Vec2f( 0,0 )
 		
 		
 		_axis=axis
 		_axis=axis