Project

General

Profile

Actions

Patch #23980

open

Replace images with icon fonts

Added by Marius BĂLTEANU over 7 years ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Category:
UI
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Icon fonts have some advantages over the classical images:
- being vector graphics, they are scalable an can be resized without losing quality.
- can be customized directly from CSS (size, colour, etc)
- less HTTP requests to server because they are loaded only with one or a few requests. Now, Redmine make a request for each image.
- some of the current custom themes already use icon fonts (Abacus theme, Minelab, PurpleMine2, our custom theme and I think the theme from plan.io).

We're interested to contribute with a patch that implements the FontAwesome icons, but because there are at least two ways to implement them, we want some feedback before from Redmine contributors and/or users.

1. Using i tags:

Advantages:
  • Is the recommended way on their official page
  • We can use all the build-in rules available in the FontAwesome CSS.
Disadvantages:
  • it'll be required to add the i elements in views.

2. Only from css

Advantages:
  • the views will not be modified
Disadvantages:
  • The build-in rules must be reimplemented in the current CSS
  • The icons will be defined using their unicode. For example, the fa-pencil icon (similar with the current images for icon-edit) has the unicode f040.

Only for demo purposes, I've attached a patch that replaces the icons from issue page with font awesome icons (using i tags).


Files

font_awesome_icons.patch (15.3 KB) font_awesome_icons.patch Marius BĂLTEANU, 2016-10-04 02:06
font_awesome.png (263 KB) font_awesome.png Marius BĂLTEANU, 2016-10-04 02:19
use_font_awesome_icons_for_all_elements_that_use_icon_class.patch (399 KB) use_font_awesome_icons_for_all_elements_that_use_icon_class.patch Marius BĂLTEANU, 2016-10-09 12:11
replace_images_with_fa_icons.patch (15 KB) replace_images_with_fa_icons.patch Marius BĂLTEANU, 2016-11-29 01:33
font-mfizz.zip (243 KB) font-mfizz.zip Marius BĂLTEANU, 2016-11-29 02:05
fonts_folder.png (92.8 KB) fonts_folder.png Marius BĂLTEANU, 2016-11-29 02:06
admin_fa.png (142 KB) admin_fa.png Marius BĂLTEANU, 2016-11-29 02:09
issue_fa.png (236 KB) issue_fa.png Marius BĂLTEANU, 2016-11-29 02:09
activity_fa.png (293 KB) activity_fa.png Marius BĂLTEANU, 2016-11-29 02:09
overview_fa.png (191 KB) overview_fa.png Marius BĂLTEANU, 2016-11-29 02:10
projects_fa.png (124 KB) projects_fa.png Marius BĂLTEANU, 2016-11-29 02:10
issues_fa.png (319 KB) issues_fa.png Marius BĂLTEANU, 2016-11-29 02:10
repository_fa.png (324 KB) repository_fa.png Marius BĂLTEANU, 2016-11-29 02:10
roadmap_fa.png (211 KB) roadmap_fa.png Marius BĂLTEANU, 2016-11-29 02:10
replace_images_with_fa_icons_v2.patch (15.6 KB) replace_images_with_fa_icons_v2.patch Marius BĂLTEANU, 2016-11-29 02:40
gitlab.png (50.4 KB) gitlab.png Marius BĂLTEANU, 2019-05-20 08:46
before.png (50.5 KB) before.png Marius BĂLTEANU, 2019-09-25 21:45
after.png (43.6 KB) after.png Marius BĂLTEANU, 2019-09-25 21:45
issue.png (114 KB) issue.png Marius BĂLTEANU, 2021-10-10 20:15
0001-Replace-icon-images-with-inline-SVG-icons.patch (29.8 KB) 0001-Replace-icon-images-with-inline-SVG-icons.patch Marius BĂLTEANU, 2021-10-10 20:16
0001-Add-tag-helper-patch.patch (31.5 KB) 0001-Add-tag-helper-patch.patch Takashi Kato, 2022-03-21 22:31
0002-Add-svg-icons.patch (98.7 KB) 0002-Add-svg-icons.patch Takashi Kato, 2022-03-21 22:31
0003-Support-expand-collapse-with-svg-icons.patch (21.8 KB) 0003-Support-expand-collapse-with-svg-icons.patch Takashi Kato, 2022-03-21 22:32
0004-Support-jsToolbar.patch (7.77 KB) 0004-Support-jsToolbar.patch Takashi Kato, 2022-03-21 22:32
0005-Replace-tags-with-helper.patch (19.3 KB) 0005-Replace-tags-with-helper.patch Takashi Kato, 2022-03-21 22:32
0006-Add-a-temporary-svg-icon-to-the-plugin-template.patch (2.04 KB) 0006-Add-a-temporary-svg-icon-to-the-plugin-template.patch Takashi Kato, 2022-03-21 22:33
svg-icon.png (325 KB) svg-icon.png Takashi Kato, 2022-03-21 22:37

Related issues

Related to Redmine - Feature #5830: Replace famfamfam icons with the fugue setNew2010-07-07

Actions
Related to Redmine - Feature #11757: Add support for HDPI screens (retina)New

Actions
Related to Redmine - Feature #30229: Optimization: all UI icons collapsed into a single spriteClosed

Actions
Actions

Also available in: Atom PDF