5.10.1 Tweaks for a Particular Platform - Reference Documentation
Authors: Andres Almiray
Version: 1.2.0
5.10.1 Tweaks for a Particular Platform
Griffon will automatically apply tweaks to the application depending on the current platform. However you have the option to specify a different set of tweaks. For example, the following configuration inConfig.groovy
specifies a different handler for macosx
:platform { handler = [ macosx: 'com.acme.MyMacOSXPlatformHandler' ] }
package com.acmeimport griffon.core.GriffonApplication import griffon.util.PlatformHandlerclass MyMacOSXPlatformHandler implements PlatformHandler { void handle(GriffonApplication app) { System.setProperty('apple.laf.useScreenMenuBar', 'true') … } }
linux
, macosx
, solaris
and windows
.