GUI Commands 2.0 has arrived! Find out what's new and improved.
Quaqua Integration

The Quaqua Look and Feel provides even more flexibility that the default Aqua L&F when rendering buttons on the Mac.   Quaqua buttons styles can also be specified as client properties in the face configuration.  The following shows an example of configuring a square button.

<face>
   <text vertical-position="bottom">Quaqua</text>
   <icon type="classpath">org/pietschy/command/demo/images/icon_biggrin.gif</icon>
   <client-property name="Quaqua.Button.style">square</client-property>
</face>

Toggle Groups

Quaqua provides the capability of rendering toolbar buttons in various styles. GUI commands now provides a special property on toggle groups to automatically render toolbar buttons using Quaqua's inbuilt styles. The two available styles are rounded and tabbed. When using the rounded style, the first and last members of the toggle group are automatically configured with the toggleEast and toggleWest styles.

The following example demonstrates configuring a toogle group to generate rounded buttons on toolbars.

<toggle-group id="rounded.toggles">
   <face>
      <text>Text Styles</text>
   </face>
   <property name="Quaqua.toolbar.style">rounded</property>    
   <members>  
      <member command-id="bold"/>
      <member command-id="italic"/>
      <member command-id="underline"/>            
   </members>  
</toggle-group>

The follow images shows examples of both the rounded and tabbed toolbar styles.