Wiki source code of Icons

Last modified by Lucas Charpentier (Sereza7) on 2024/11/22

Hide last authors
Lucas Charpentier (Sereza7) 1.7 1 == Using icons in XWiki ==
2
Lucas Charpentier (Sereza7) 1.11 3 In order to add an icon in XWiki content, use the [[Icon Macro>>doc:extensions:Extension.Icon Macro.WebHome]] in your velocity template. This is the recommended way, by default it will fetch the icon from the current icon theme.
Lucas Charpentier (Sereza7) 1.6 4
Lucas Charpentier (Sereza7) 1.11 5 In order to add an icon in a Velocity script, you can use the [[icon manager script service>>https://www.xwiki.org/xwiki/bin/view/ScriptingDocumentation/?url=http:%2F%2Fnexus.xwiki.org%2Fnexus%2Fservice%2Flocal%2Frepositories%2Fpublic%2Farchive%2Forg%2Fxwiki%2Fplatform%2Fxwiki-platform-icon-script%2F14.10.18%2Fxwiki-platform-icon-script-14.10.18-javadoc.jar%2F!%2Forg%2Fxwiki%2Ficon%2FIconManagerScriptService.html]] with syntax such as {{code language="velocity"}}$services.icon.renderHTML('add'){{/code}}.
Lucas Charpentier (Sereza7) 1.7 6
Lucas Charpentier (Sereza7) 3.1 7 In order to access an icon, you can also use the [[Icon REST API>>doc:extensions:Extension.Icon Theme Application||anchor="#HRESTAPI"]]. It's recommended to not query a specific icon theme but let the API share the icon of the current icon theme.
8
Lucas Charpentier (Sereza7) 1.11 9 In the codebase, you might still find some other ways to use icons that are deprecated:
Lucas Charpentier (Sereza7) 1.7 10
Lucas Charpentier (Sereza7) 2.2 11 * Use the [[XWiki Syntax for icons>>doc:Documentation.UserGuide.Features.XWikiSyntax.WebHome||queryString="syntax=2.1&section=Images"]] . As of now, these icons do not follow the current icon theme and are always rendered using Silk. See [[XWIKI-10758: Bind icons of the wiki syntax to the icon theme>>https://jira.xwiki.org/browse/XWIKI-10758]] . Moreover, using this syntax can pose a security threat.
Lucas Charpentier (Sereza7) 1.11 12 * Use icon references as the image background of your HTML node. This method should be avoided to reduce technical debt.
13
Lucas Charpentier (Sereza7) 4.1 14 == Icon set ==
Lucas Charpentier (Sereza7) 1.11 15
Lucas Charpentier (Sereza7) 4.2 16 XWiki supports one icon set. It is often referenced in the documentation as //The XWiki Icon Set// or //the Icon Set//. This is the set of icons that XWiki wants to support.
Lucas Charpentier (Sereza7) 1.9 17
Lucas Charpentier (Sereza7) 2.1 18 === Icon naming convention ===
19
20 In order to keep long term consistency on the icon names, a set of rules have been discussed. Those must be followed when introducing a new icon to the XWiki Icon Set.
21
22 * Use kebab-case.
23 * For composite icon names, the main noun is the first in the name.
24 * Remove hyphens from compound nouns.
25
26 Examples:
27
28 * ‘file-add’ and not ‘add-file’ because the main noun is ‘file’ here ‘add’ is the action
29 * ‘pdf-export’ and not ‘export-pdf’ because the main noun is ‘pdf’ and ‘export’ is the action.
30 * ‘bullet-black’ and not ‘black-bullet’ because the main noun is ‘bullet’ and ‘black’ is an adjective
31 * ‘emoticon-smile’ and not ‘smile-emoticon’ because the main noun is ‘emoticon’ and ‘smile’ is a complementary noun.
32 * ‘fastforward’ is a compound noun from which we removed the hyphen.
33 * ‘file-pdf’ and not ‘pdf-file’ because in the meaning of this icon, the main meaning is ‘file’, while ‘pdf’ only helps to refine the meaning. On the contrary, ‘pdf-file’ would mean that we want a ‘file’ variation on the main concept of ‘pdf’.
34
Vincent Massol 6.1 35 === Updating the icon set ===
Lucas Charpentier (Sereza7) 5.1 36
37 1. Removing an icon
Vincent Massol 6.1 38 1*. If an icon does not fit anymore in the current context, it should be deprecated and not fully removed. This means that it is moved at the end of the iconTheme mapping files and under a section that provides the version this icon was deprecated in. Deprecated icons should not be used in new content.
Lucas Charpentier (Sereza7) 5.1 39 1. Adding an icon
Vincent Massol 6.1 40 1*. If there's a need for a new icon, the XWiki icon set can be extended. Such an extension is a non reversible change, it should be discussed with the community on the forum. In the proposal, make sure to provide a mapping for at least four icon themes: Silk, FA4, Glyphicons and the Material Icons.
41 1*. Even if the XWiki core Development Team only supports Silk and FA4, we still want to make sure that the proposed icons represent concepts generic enough so that they can be mapped to all or most icon themes that can exist.
42 1*. If not all of those mappings are possible, provide an extra justification for its inclusion in the XWiki icon set.
43 1*. Do not duplicate icons. Note that mappings can be similar with different semantics (that can change mappings on only some icon themes).
Lucas Charpentier (Sereza7) 5.1 44 1. Renaming an icon
Vincent Massol 6.1 45 1*. Such a decision should be checked with the community too. Make sure to still follow our naming convention. Once the decision is validated, deprecate the old name and add the mappings for the new names.
Lucas Charpentier (Sereza7) 5.1 46
Lucas Charpentier (Sereza7) 4.2 47 == Icon themes ==
48
Vincent Massol 6.1 49 XWiki allows to use multiple [[icon themes>>doc:extensions:Extension.Icon Theme Application]]. The XWiki Standard flavor bundles the [[Silk>>doc:extensions:Extension.Icon Theme Application||anchor="HSilkIconTheme"]] and [[Font Awesome>>doc:extensions:Extension.Font Awesome Icon Theme]] (FA) icon themes. As of now, the default icon theme in the Standard flavor is Font Awesome 4. Naturally, all icons from the Icon Set should be present in every Icon Theme!
Lucas Charpentier (Sereza7) 4.2 50
Vincent Massol 6.1 51 The 2 icon themes supported by the core XWiki core Development Team are:
Lucas Charpentier (Sereza7) 6.2 52
Vincent Massol 6.1 53 * [[Silk>>doc:extensions:Extension.Icon Theme Application||anchor="HSilkIconTheme"]]
54 * [[Font Awesome>>doc:extensions:Extension.Font Awesome Icon Theme]]
Lucas Charpentier (Sereza7) 4.2 55
56 [[List of available icon theme extensions>>doc:extensions:ExtensionCode.AllExtensions.WebHome||anchor="|t=extensions&p=1&l=15&s=doc.creationDate&d=desc&category=icontheme"]]
57
Lucas Charpentier (Sereza7) 2.1 58 === Mapping ===
Lucas Charpentier (Sereza7) 2.2 59
Lucas Charpentier (Sereza7) 6.6 60 All icons of the XWiki IconSet must have a mapping to the two supported IconThemes:
Lucas Charpentier (Sereza7) 2.2 61
Lucas Charpentier (Sereza7) 6.6 62 {{liveData id="iconMappings" properties="Iconname, Silkmapping, FontAwesomemapping" showPageSizeDropdown="false" sort="Iconname" source="liveTable" sourceParameters="className=Documentation.DevGuide.FrontendResources.Icons.IconMappingClass" limit="5"}}{{/liveData}}
Lucas Charpentier (Sereza7) 3.3 63
Lucas Charpentier (Sereza7) 1.2 64 {{velocity}}
65 ## Awesome Font
66 #set($discard = $xwiki.linkx.use('//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css', {'rel': 'stylesheet'}))
67 #set($discard = $xwiki.ssx.use('Proposal.IconSet'))
Lucas Charpentier (Sereza7) 6.3 68 {{comment}}
Lucas Charpentier (Sereza7) 1.2 69 #set($icons = [])
70 #macro(icon $name $silk $fa $glyph $elusive)
71 #set($icon = {})
72 #set($discard = $icon.put('name', $name))
73 #set($discard = $icon.put('fa', $fa))
74 #set($discard = $icon.put('silk', $silk))
75 #set($discard = $icons.add($icon))
76 |**$name**|#if(!$stringtool.isBlank($silk))image:icon:$silk $silk#end|#if(!$stringtool.isBlank($fa)){{html clean="false"}}<i class="fa fa-$fa"></i>{{/html}} fa-${fa}#end|#if(!$stringtool.isBlank($glyph)){{html clean="false"}}<span class="glyphicon glyphicon-$glyph"></span>{{/html}} glyphicon-$glyph#end|#if(!$stringtool.isBlank($elusive)){{html clean="false"}}<span class="glyphicon el-icon-$elusive"></span>{{/html}} el-icon-$elusive#end\\
77 #end
78 |=Name|=Silk|=Font Awesome|=Glyphicon (Bootstrap)|=Elusive
Lucas Charpentier (Sereza7) 1.3 79 #icon('add', 'add', 'plus', 'plus', 'plus')
80 #icon('align-center', 'text_align_center', 'align-center', 'align-center', 'align-center')
81 #icon('align-justify', 'text_align_justify', 'align-justify', 'align-justify', 'align-justify')
82 #icon('align-left', 'text_align_left', 'align-left', 'align-left', 'align-left')
83 #icon('align-right', 'text_align_right', 'align-right', 'align-right', 'align-right')
84 #icon('anchor', 'anchor', 'anchor', '', '')
Lucas Charpentier (Sereza7) 2.3 85 #icon('arrow-in', 'arrow_in', 'window-minimize', '', '')
Lucas Charpentier (Sereza7) 1.3 86 #icon('arrows', 'arrow_out', 'arrows-alt', 'fullscreen', '')
Lucas Charpentier (Sereza7) 1.2 87 #icon('attach', 'attach', 'paperclip', 'paperclip', 'paper-clip')
Lucas Charpentier (Sereza7) 1.4 88 #icon('backward', 'control_rewind', 'backward', 'backward', 'backward')
Lucas Charpentier (Sereza7) 1.2 89 #icon('bell', 'bell', 'bell', 'bell', 'bell')
Lucas Charpentier (Sereza7) 1.4 90 #icon('bold', 'text_bold', 'bold', 'bold', 'bold')
Lucas Charpentier (Sereza7) 1.2 91 #icon('bomb', 'bomb', 'bomb', '', '')
92 #icon('book', 'book', 'book', 'book', 'book')
Lucas Charpentier (Sereza7) 1.4 93 #icon('branch', 'arrow_branch', 'code-fork', '', '')
Lucas Charpentier (Sereza7) 1.2 94 #icon('briefcase', 'briefcase', 'briefcase', 'briefcase', 'briefcase')
95 #icon('bug', 'bug', 'bug', '', '')
96 #icon('building', 'building', 'building', '', '')
Lucas Charpentier (Sereza7) 2.3 97 #icon('bullet-black', 'bullet_black', 'circle', '', '')
Lucas Charpentier (Sereza7) 1.4 98 #icon('calculator', 'calculator', 'calculator', '', '')
99 #icon('calendar', 'calendar', 'calendar', 'calendar', 'calendar')
Lucas Charpentier (Sereza7) 1.5 100 #icon('camera', 'camera', 'camera', 'camera', 'camera')
101 #icon('car', 'car', 'car', 'bed', 'car')
Lucas Charpentier (Sereza7) 1.2 102 #icon('caret-down', 'bullet_arrow_down', 'caret-down', 'triangle-bottom', 'caret-down')
Lucas Charpentier (Sereza7) 1.4 103 #icon('caret-right', 'bullet_go', 'caret-right', 'triangle-right', 'caret-right')
Lucas Charpentier (Sereza7) 1.2 104 #icon('caret-up', 'bullet_arrow_up', 'caret-up', 'triangle-top', 'caret-up')
Lucas Charpentier (Sereza7) 1.5 105 #icon('certificate', 'rosette', 'certificate', 'certificate', 'certificate')
Lucas Charpentier (Sereza7) 1.2 106 #icon('chart-bar', 'chart_bar', 'bar-chart-o', '', '')
107 #icon('chart-organisation', 'chart_organisation', 'sitemap', '', '')
Lucas Charpentier (Sereza7) 1.5 108 #icon('check', 'accept', 'check', 'ok', 'ok')
Lucas Charpentier (Sereza7) 1.10 109 #icon('clock', 'clock', 'clock-o', '', '')
Lucas Charpentier (Sereza7) 1.2 110 #icon('cloud', 'weather_clouds', 'cloud', 'cloud', 'cloud')
Lucas Charpentier (Sereza7) 1.5 111 #icon('coffee', 'cup', 'coffee', '', '')
Lucas Charpentier (Sereza7) 1.2 112 #icon('cog', 'cog', 'cog', 'cog', 'cog')
Lucas Charpentier (Sereza7) 1.5 113 #icon('columns', 'text_columns', 'columns', '', '')
Lucas Charpentier (Sereza7) 1.2 114 #icon('comment', 'comment', 'comment', 'comment', 'comment')
115 #icon('comments', 'comments', 'comments', '', '')
116 #icon('contrast', 'contrast', 'adjust', '', '')
Lucas Charpentier (Sereza7) 1.5 117 #icon('copy', 'page_copy', 'copy', 'edit', 'file-edit')
Lucas Charpentier (Sereza7) 2.3 118 #icon('creditcard', 'creditcards', 'credit-card', 'credit-card', 'credit-card')
Lucas Charpentier (Sereza7) 1.5 119 #icon('cross', 'cross', 'times', 'remove', 'remove')
120 #icon('cube', 'box', 'cube', '', '')
121 #icon('cubes', 'bricks', 'cubes', '', '')
Lucas Charpentier (Sereza7) 1.2 122 #icon('cut', 'cut', 'cut', '', '')
123 #icon('database', 'database', 'database', '', '')
124 #icon('delete', 'delete', 'minus-circle', 'minus-sign', 'minus-sign')
Lucas Charpentier (Sereza7) 1.5 125 #icon('desktop', 'computer', 'desktop', '', '')
126 #icon('dollar', 'money_dollar', 'dollar', '', '')
127 #icon('down', 'arrow_down', 'arrow-down', 'arrow-down', '')
Lucas Charpentier (Sereza7) 1.3 128 #icon('download', 'application_put', 'download', 'download-alt', 'download-alt')
Lucas Charpentier (Sereza7) 1.2 129 #icon('drive', 'drive', 'hdd-o', 'hdd', 'hdd')
Lucas Charpentier (Sereza7) 1.5 130 #icon('edit', 'page_edit', 'edit', 'edit', 'edit')
131 #icon('eject', 'control_eject', 'eject', 'eject', 'eject')
Lucas Charpentier (Sereza7) 2.3 132 #icon('emoticon-smile', 'emoticon_smile', 'smile-o', 'user', 'smiley')
Lucas Charpentier (Sereza7) 1.2 133 #icon('envelope', 'email', 'envelope-o', 'envelope', 'envelope')
134 #icon('error', 'exclamation', 'exclamation-circle', 'exclamation-sign', 'exclamation-sign')
Lucas Charpentier (Sereza7) 1.5 135 #icon('euro', 'money_euro', 'euro', 'euro', 'euro')
Lucas Charpentier (Sereza7) 1.2 136 #icon('eye', 'eye', 'eye', 'eye-open', 'eye-open')
Lucas Charpentier (Sereza7) 2.3 137 #icon('fastforward', 'control_fastforward', 'fast-forward', 'fast-forward', 'fast-forward')
138 #icon('fastbackward', 'control_rewind', 'fast-backward', '', '')
Lucas Charpentier (Sereza7) 1.2 139 #icon('female', 'female', 'female', '', '')
140 #icon('file', 'page', 'file', 'file', 'file')
Lucas Charpentier (Sereza7) 1.10 141 #icon('file-archive', 'page_white_compressed', 'file-archive-o', '', '')
Lucas Charpentier (Sereza7) 1.2 142 #icon('file-code', 'page_white_code', 'file-code-o', '', '')
143 #icon('file-excel', 'page_white_excel', 'file-excel-o', '', '')
Lucas Charpentier (Sereza7) 1.10 144 #icon('file-pdf', 'page_white_acrobat', 'file-pdf-o', '', '')
Lucas Charpentier (Sereza7) 1.2 145 #icon('file-powerpoint', 'page_white_powerpoint', 'file-powerpoint-o', '', '')
146 #icon('file-text', 'page_white_text', 'file-text-o', '', '')
Lucas Charpentier (Sereza7) 1.10 147 #icon('file-white', 'page_white', 'file-o', '', '')
148 #icon('file-word', 'page_white_word', 'file-word-o', '', '')
Lucas Charpentier (Sereza7) 1.5 149 #icon('film', 'film', 'film', 'film', 'film')
Lucas Charpentier (Sereza7) 1.3 150 #icon('filter', 'find', 'filter', '', '')
Lucas Charpentier (Sereza7) 1.5 151 #icon('flag', 'flag_blue', 'flag', 'flag', 'flag')
Lucas Charpentier (Sereza7) 2.3 152 #icon('floppydisk', 'disk', 'floppy-o', 'floppy-disk', 'floppy-disk')
Lucas Charpentier (Sereza7) 1.4 153 #icon('folder', 'folder', 'folder', 'folder-open', 'folder-open')
Lucas Charpentier (Sereza7) 1.2 154 #icon('font', 'font', 'font', 'font', 'font')
Lucas Charpentier (Sereza7) 1.5 155 #icon('gamepad', 'controller', 'gamepad', '', '')
Lucas Charpentier (Sereza7) 1.10 156 #icon('gbp', 'money_pound', 'gbp', 'gbp', 'gbp')
Lucas Charpentier (Sereza7) 1.5 157 #icon('glass', 'drink', 'glass', 'glass', 'glass')
158 #icon('group', 'group', 'group', '', '')
159 #icon('heart', 'heart', 'heart', 'heart', 'heart')
Lucas Charpentier (Sereza7) 1.10 160 #icon('heart-empty', 'heart', 'heart-o', 'heart-empty', 'heart-empty')
Lucas Charpentier (Sereza7) 1.5 161 #icon('home', 'house', 'home', 'home', 'home')
162 #icon('image', 'image', 'image', 'picture', 'picture')
Lucas Charpentier (Sereza7) 1.3 163 #icon('indent-left', 'text_indent', 'indent', 'indent-left', 'indent-left')
164 #icon('indent-right', 'text_indent_remove', 'outdent', 'indent-right', 'indent-right')
Lucas Charpentier (Sereza7) 1.5 165 #icon('info', 'information', 'info-circle', 'info-sign', 'info-sign')
Lucas Charpentier (Sereza7) 1.2 166 #icon('italic', 'text_italic', 'italic', 'italic', 'italic')
Lucas Charpentier (Sereza7) 1.5 167 #icon('key', 'key', 'key', '', '')
168 #icon('keyboard', 'keyboard', 'keyboard-o', '', '')
Lucas Charpentier (Sereza7) 1.4 169 #icon('left', 'arrow_left', 'arrow-left', 'arrow-left', '')
170 #icon('lightbulb', 'lightbulb', 'lightbulb-o', '', '')
171 #icon('link', 'link', 'link', 'link', 'link')
172 #icon('list', 'application_view_list', 'list-alt', 'list-alt', 'list-alt')
Lucas Charpentier (Sereza7) 1.2 173 #icon('list-bullets', 'text_list_bullets', 'list-ul', 'list', 'list')
174 #icon('list-numbers', 'text_list_numbers', 'list-ol', '', '')
Lucas Charpentier (Sereza7) 1.4 175 #icon('lock', 'lock', 'lock', 'lock', 'lock')
Lucas Charpentier (Sereza7) 2.3 176 #icon('login', 'user_go', 'sign-in', 'log-in', 'circle-arrow-right')
177 #icon('logout', 'user_go', 'sign-out', 'log-out', 'circle-arrow-right')
Lucas Charpentier (Sereza7) 1.4 178 #icon('male', 'male', 'male', '', '')
Lucas Charpentier (Sereza7) 1.2 179 #icon('menu', 'bullet_arrow_down', 'bars', 'menu-hamburger', 'lines')
Lucas Charpentier (Sereza7) 1.3 180 #icon('minus-square', 'bullet_toggle_minus', 'minus-square', 'minus-sign', 'minus-sign')
Lucas Charpentier (Sereza7) 1.4 181 #icon('money', 'money', 'money', '', '')
Lucas Charpentier (Sereza7) 1.2 182 #icon('more-vertical', 'bullet_arrow_down', 'ellipsis-v', 'option-vertical', 'chevron-down')
183 #icon('move', 'page_go', 'external-link', 'new-window', 'share')
Lucas Charpentier (Sereza7) 1.4 184 #icon('music', 'music', 'music', 'music', 'music')
185 #icon('page', 'page_white_text', 'file-o', 'file', 'file')
Lucas Charpentier (Sereza7) 1.3 186 #icon('paste', 'paste_plain', 'paste', '', '')
Lucas Charpentier (Sereza7) 1.4 187 #icon('pause', 'control_pause', 'pause', 'pause', 'pause')
Lucas Charpentier (Sereza7) 1.3 188 #icon('pencil', 'pencil', 'pencil', 'pencil', 'pencil')
189 #icon('phone', 'telephone', 'phone', '', '')
Lucas Charpentier (Sereza7) 1.4 190 #icon('play', 'control_play', 'play', 'play', 'play')
Lucas Charpentier (Sereza7) 1.3 191 #icon('plus-square', 'bullet_toggle_plus','plus-square', 'plus-sign', 'plus-sign')
192 #icon('print', 'printer', 'print', '', '')
Lucas Charpentier (Sereza7) 1.4 193 #icon('question', 'help', 'question-circle', 'question-sign', 'question-sign')
194 #icon('random', 'arrow_switch', 'random', 'random', 'random')
195 #icon('refresh', 'arrow_refresh', 'refresh', 'refresh', '')
Lucas Charpentier (Sereza7) 1.5 196 #icon('remove', 'cancel', 'times-circle', 'remove-sign', 'remove-sign')
Lucas Charpentier (Sereza7) 1.4 197 #icon('repeat', 'arrow_redo', 'repeat', 'retweet', '')
198 #icon('right', 'arrow_right', 'arrow-right', 'arrow-right', '')
199 #icon('rotate-left', 'arrow_rotate_anticlockwise', 'rotate-left', '', '')
200 #icon('rotate-right', 'arrow_rotate_clockwise', 'rotate-right', 'repeat', '')
Lucas Charpentier (Sereza7) 1.3 201 #icon('rss', 'feed', 'rss', '', '')
Lucas Charpentier (Sereza7) 1.4 202 #icon('search', 'magnifier', 'search', 'search', 'search')
203 #icon('search-minus', 'zoom_out', 'search-minus', '', '')
204 #icon('search-plus', 'zoom_in', 'search-plus', '', '')
Lucas Charpentier (Sereza7) 1.3 205 #icon('shield', 'shield', 'shield', '', '')
Lucas Charpentier (Sereza7) 2.3 206 #icon('shoppingcart', 'cart', 'shopping-cart', 'shopping-cart', 'shopping-cart')
Lucas Charpentier (Sereza7) 1.3 207 #icon('soccer', 'sport_soccer', 'futbol-o', '', '')
Lucas Charpentier (Sereza7) 1.4 208 #icon('space', 'folder', 'folder-open', 'folder-open', 'folder-open')
Lucas Charpentier (Sereza7) 1.3 209 #icon('star', 'star', 'star', '', '')
Lucas Charpentier (Sereza7) 1.5 210 #icon('step-forward', 'control_end', 'step-forward', 'step-forward', 'step-forward')
211 #icon('step-backward', 'control_start', 'step-backward', 'step-backward', 'step-backward')
Lucas Charpentier (Sereza7) 1.4 212 #icon('stop', 'control_stop', 'stop', 'stop', 'stop')
213 #icon('strikethrough', 'text_strikethrough', 'strikethrough', '', '')
214 #icon('subscript', 'text_subscript', 'subscript', '', '')
Lucas Charpentier (Sereza7) 1.3 215 #icon('sun', 'weather_sun', 'sun-o', '', '')
Lucas Charpentier (Sereza7) 1.4 216 #icon('superscript', 'text_superscript', 'superscript', '', '')
217 #icon('switch', 'arrow_switch', 'random', 'random', 'random')
Lucas Charpentier (Sereza7) 1.3 218 #icon('table', 'table', 'table', '', '')
Lucas Charpentier (Sereza7) 2.3 219 #icon('table-sort', 'table_sort', 'sort', '', '')
Lucas Charpentier (Sereza7) 1.4 220 #icon('terminal', 'application_osx_terminal', 'terminal', 'console', '')
Lucas Charpentier (Sereza7) 1.2 221 #icon('th', 'application_view_tile', 'th', 'th', 'th')
222 #icon('translate', 'page_white_world', 'language', 'globe', 'globe')
Lucas Charpentier (Sereza7) 1.4 223 #icon('trash', 'bin', 'trash', 'trash', 'trash')
Lucas Charpentier (Sereza7) 1.5 224 #icon('truck', 'lorry', 'truck', '', '')
Lucas Charpentier (Sereza7) 1.3 225 #icon('underline', 'text_underline', 'underline', '', '')
Lucas Charpentier (Sereza7) 1.4 226 #icon('undo', 'arrow_undo', 'undo', '', '')
227 #icon('unlink', 'link_break', 'unlink', '', '')
228 #icon('unlock', 'lock_open', 'unlock', '', '')
Lucas Charpentier (Sereza7) 1.3 229 #icon('up', 'arrow_up', 'arrow-up', 'arrow-up', '')
Lucas Charpentier (Sereza7) 1.4 230 #icon('user', 'user', 'user', '', '')
Lucas Charpentier (Sereza7) 1.3 231 #icon('volume-up', 'sound', 'volume-up', '', '')
232 #icon('volume-down', 'sound_low', 'volume-down', '', '')
233 #icon('volume-off', 'sound_none', 'volume-off', '', '')
234 #icon('warning', 'error', 'exclamation-triangle', 'warning-sign', 'warning-sign')
235 #icon('wiki', 'world', 'globe', 'globe', 'globe')
236 #icon('world', 'world', 'globe', 'globe', 'globe')
237 #icon('wrench', 'wrench', 'wrench', 'wrench', 'wrench')
Lucas Charpentier (Sereza7) 1.4 238 #icon('yen', 'money_yen', 'yen', '', '')
Lucas Charpentier (Sereza7) 6.3 239 {{/comment}}
Lucas Charpentier (Sereza7) 1.5 240 {{/velocity}}
Lucas Charpentier (Sereza7) 1.2 241
Lucas Charpentier (Sereza7) 1.7 242 == Icon strategy ==
243
244 As of now, there's a consensus that the skeuomorph based Silk icons do look out of place in our modern UI.
Vincent Massol 6.1 245
Lucas Charpentier (Sereza7) 1.9 246 One of the long term goals of the development team is to migrate the default to a more up to date icon theme.
Vincent Massol 6.1 247
Lucas Charpentier (Sereza7) 1.9 248 However, integration of Silk icons in some UIs sometimes pre-dated the icon theme feature. This is why some elements of the XWiki interface use hard coded Silk icons. Replacing those icons with actual icontheme references is not always easy, because the concept they picture is not always mappable in other icon themes, and there's no easy conversion from Silk to the icon theme. This is especially apparent for technical icons: in Font Awesome, there's no icon for all kind of fields we could show in Silk, and there's no icon for the `composite` icons from Silk such as `addfile`, `editfile`, `addcomment`, `adduser`. Technically, most of those icons could be done with [[Font Awesome icon stacking>>https://jira.xwiki.org/browse/XWIKI-21580]], but those icons are difficult to find in any icon theme, so it might not make the most sense to add them to the icon set.
Lucas Charpentier (Sereza7) 1.7 249
Lucas Charpentier (Sereza7) 1.12 250 As of now, we can see that [[hard coded Silk references>>https://github.com/search?q=repo%3Axwiki%2Fxwiki-platform%20silk%2F&type=code]] are still present.

Get Connected