This application is a Grails 2 project that demonstrates some simple usage of the Platform UI plugin to render a JS and CSS neutral UI using Themes.
This application is primarily for developers to test their own Platform UI Themes and UI Sets in a simple "trusted environment".
- Download / clone the repo
- Run the app
- Browse to
http://localhost:8080/UiShowcase/platform/uiand notice how ugly it is - Stop the app
- Install the
bootstrap-themeplugin - Run the app
- Notice how it is less ugly
You will need to build your Theme and/or UI Set plugins locally (inline plugins may work but I never use them and do not trust them) and install them into this app project locally.
I strongly recommend that you use Grails 1.3.7+ or 2.0.4 if doing this. There are a number of very confusing dependency problems with re-installing locally built snapshot plugins under other Grails versions. Grails 2.1.x includes apparent regressions in this area
To do this you can use the handy Platform UI dev mode interface.
By default if there is only one non-default theme supplied, it will be active. However if you install more than one theme, say Bootstrap and your own, it may not choose yours.
To select the theme manually you can browse to http://localhost:8080/UiShowcase/platform/ui and click on the link to the Theme previewer. Use the panel there to select the Theme you wish to test and click "Show".
That theme is now set as the default for the current user session. So you can now browse to / and the app will show using that theme.
Alternatively you can use the standard Platform UI config options to set the theme in Config.groovy.