Wiki source code of Create an Icon Theme

Last modified by Eleni Cojocariu on 2026/12/04 14:34

Show last authors
1 1. [[Create a terminal page>>doc:documentation.xs.user.page.create.create-terminal-page.WebHome]] for the [[Icon Theme>>doc:documentation.xs.admin.look-feel.icons.icon-themes.WebHome]] in the ##IconThemes## space
2 1. Enter [[the theme's settings>>doc:documentation.xs.dev.look-feel.icons.create-icon-theme.properties.WebHome]] as the page content, one ##key = value## per line(((
3 {{code language="properties"}}
4 xwiki.iconset.type = font
5 xwiki.iconset.css = $services.webjars.url('org.webjars:font-awesome', 'css/all.min.css')
6 xwiki.iconset.render.wiki = {{html clean="false"}}<span class="fa-solid fa-$icon" aria-hidden="true"></span>{{/html}}
7 xwiki.iconset.render.html = <span class="fa-solid fa-$icon" aria-hidden="true"></span>
8 xwiki.iconset.icon.cssClass = fa-solid fa-$icon
9 {{/code}}
10 )))
11 1. Map each icon name of [[the XWiki Icon Set>>doc:documentation.xs.admin.look-feel.icons.icon-set.WebHome]] below the settings, in the same form(((
12 {{code language="properties"}}
13 accept = check
14 add = plus
15 home = house
16 {{/code}}
17 )))
18 1. Save the page
19 1. Add an ##IconThemesCode.IconThemeClass## object to it, and set the object's ##name## property to the name the theme is chosen and referenced by(((
20 {{image reference="icon-theme-object.png" size="extra" alt="The object editor of the theme page, with the name property of its Icon Theme Class object highlighted"/}}
21 )))
22 1. Check that the administration now offers the theme under that name, ready to be [[selected for the wiki>>doc:documentation.xs.admin.look-feel.icons.icon-themes.select-icon-theme.WebHome]], as follows:(((
23 {{image reference="icon-theme-selector.png" size="large" alt="The icon theme field of the administration, highlighted, showing the newly created theme"/}}
24 )))

Get Connected