2
0
Эх сурвалжийг харах

ToolButtons now default to PushButtomMode=True.

Mark Sibly 9 жил өмнө
parent
commit
f81e4a11a5

+ 4 - 1
modules/mojox/toolbar.monkey2

@@ -9,6 +9,8 @@ Class ToolButton Extends Button
 		Super.New( action )
 		
 		Style=GetStyle( "ToolButton" )
+		
+		PushButtonMode=True
 	End
 	
 End
@@ -26,7 +28,8 @@ Class ToolBar Extends DockingView
 	Method New( axis:Axis )
 		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 )
 		
 		_axis=axis