Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SVGs for UI graphics. Implements #27828. #306

Merged
merged 3 commits into from
Jan 22, 2018

Conversation

davidjb
Copy link
Contributor

@davidjb davidjb commented Jan 20, 2018

This changes FreeNAS/TrueNAS/iX logos and icons, as well as the Beastie
Shark graphic into their SVG equivalents for scalability and greatly
improving their appearance on zoomed interfaces, high-DPI screens,
mobile devices etc. This implements https://redmine.ixsystems.com/issues/27828.

Several image tags within the HTML have also had their alt text added or improved for better accessibility at the same time.

cancel.png from Hopscotch has been left alone as the graphic scales well enough and it's an issue for that upstream project to resolve. An issue was raised over there with LinkedInAttic/hopscotch#357.

Beastie Shark's artwork was re-obtained from https://forums.freenas.org/index.php?threads/freenas-artwork.40541/ (which is where the original PNG was presumably sourced).

Note that images have not been optimised. Though they could easily be run through svgo to save around 50% of their size, this limits their ease of / ability to be edited later. Ideally, angular-cli would do the optimisation automatically as part of the build but this isn't currently a feature they have implemented (angular/angular-cli#2935 & angular/angular-cli#5356). Webpack has loaders that will help optimise images (eg https://github.com/tcoopman/image-webpack-loader) but using this would involve ejecting from angular-cli, so I'll leave this decision up to someone else.

This changes FreeNAS/TrueNAS/iX logos and icons, as well as the Beastie
Shark graphic into their SVG equivalents for scalability and greatly
improving their appearance on zoomed interfaces, high-DPI screens,
mobile devices etc.
@pcbsd-commit-bot
Copy link
Contributor

Can one of the admins verify this patch?

@erincodepirate
Copy link
Contributor

LGTM

@erincodepirate erincodepirate merged commit 9ad09d0 into truenas:master Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants