Using a custom AWI favorite icon
If you are not satisfied with the built-in AWI icon or the solid-color icons associated with the session colors, it is possible to use your own icon instead.
New AWI icon
Here is my new AWI icon, redrawn by hand in Affinity Designer.
AWI icons with colored borders
And here are the variants with colored borders — one for each of our staging environments.
|
|
|
|
|
Orange #FA9607 |
Yellow #FFCC00 |
Blue #2A97FF |
Green #00C400 |
Red #FF0000 |
A ZIP file containing all icons in PNG, ICO, and SVG formats is attached below.
Open the SVG files in a drawing program to see how the designs are constructed or to make your own customizations.
Changing the AWI icon using session colors
There is a way to associate a custom icon with each session color. This approach involves specifying session colors, and creating a specially-named ICO file for each one.
Changing the default AWI icon
It can be useful to assign a particular icon to each AWI server, regardless of the session color.
New approach
To override the default AWI favorite icon, just place the ICO file you want to use in the main AWI directory and give it the name favicon_E6E6E6.ico
. (The color with hexadeximal RGB value E6E6E6 is the light shade of gray next to No Color in the Session Color menu.)
Update 2023.04.14 10:00 CEST: It looks like I spoke too soon. Sadly, the above approach appears not to work. In my initial test, the browser had been loading a cached icon, not the icon from the AWI server. The original approach, described below, still works.
Original approach
In 2016 I shared some ideas about Web Interface customization, including an idea for using color-coded custom icons to replace the default favicon.ico file. I discovered then than one can customize the AWI favorite icon by replacing the default icon file located in a JAR file inside the AWI WAR file.
awi.war:
WEB-INF/bundle/webui-vaadin-framework-theme.jar
→
webui-vaadin-framework-theme.jar:
VAADIN/themes/oneui/favicon.ico