[[brand-logo]]
= Brand logo

:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.



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:

image::brand-logo/brand-logo.png[width="750px"]

A custom brand logo (typically larger) can also be specified for the signin page:

image::brand-logo/brand-logo-signin.png[width="750px"]



To configure, set the xref:refguide:config:sections/isis.viewer.wicket.adoc#isis.viewer.wicket.application.brand-logo-signin[isis.viewer.wicket.application.brand-logo-signin] and xref:refguide:config:sections/isis.viewer.wicket.adoc#isis.viewer.wicket.application.brand-logo-header[isis.viewer.wicket.application.brand-logo-header] config properties:

[source,properties]
----
isis.wicket.viewer.application.brand-logo-signin=images/todoapp-logo-signin.png
isis.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 xref:refguide:config:application-specific/application-css.adoc[application.css].
For example, a logo with height 40px works well with the following:

[source,css]
----
.navbar-brand img {
    margin-top: -5px;
    margin-left: 5px;
}
----




