Customize the UI for the GWC / Customization tutorial |
The simplest way to customize an application is to change the application style using CSS.
The Genero Application Server has a dedicated file for application customization, $FGLASDIR/tpl/SetHtml5/css_customization.css. By default, this is an empty file.
<PICTURE> <PATH Id="SetHtml5" Type="APPSERVER" ExtensionFilter="$(res.web.extensions);.less;.svg" DVMFallbackAllowed="FALSE">$(application.path)/../web; $(application.path)/../res/photo;$(res.path.pic); $(res.path.tpl.html5);$(res.path.tpl.common)</PATH> </PICTURE>In this example, css_customization.css is located in $(application.path)/../web.
$FGLASDIR/tpl/setHtml5/css_theme.css contains the list of styles you can override. The selectors are suffixed by “-style”. Enter your style modifications as shown in these examples.
.document-style { background-color: #f0f0f0; }
.header-style { background-color: #4c4545; color: #87ceeb; }
.navigation-style { background-color: #4c4545; color: #aacc22; }
h4.navigation-element-style:hover { background-color: #87ceeb; color: #4c4545; }
.toolbaritem-style:hover:not([disabled]) { background-color: #87ceeb; color: #4c4545; }