Brand logo
By default the Wicket viewer will display the application name top-left in the header menu. This can be changed to display a png logo instead.
Screenshots
The screenshot below shows an app with a 'brand logo' image in its header:
A custom brand logo (typically larger) can also be specified for the signin page:
To configure, set the causeway.viewer.wicket.application.brand-logo-signin and causeway.viewer.wicket.application.brand-logo-header config properties:
causeway.wicket.viewer.application.brand-logo-signin=images/todoapp-logo-signin.png
causeway.wicket.viewer.application.brand-logo-header=images/todoapp-logo-header.png
These files are resolved relative to the static package in src/main/resources.
Alternatively an absolute URL can be specified.
In terms of sizing:
-
for the signin image, a size of 400x100 works well.
-
for the header image, a size of 160x40 works well.
You may also wish to tweak the application.css. For example, a logo with height 40px works well with the following:
.navbar-brand img {
margin-top: -5px;
margin-left: 5px;
}