Comments (10)
For the web, we'd encourage you to use the SVGs and style them to produce other colors.
For Android or iOS, you can tint PNG assets pretty easily.
We can see if we can publish an article about that.
@addyosmani do you know of any good resources about coloring assets for the web or other platforms?
We can add some scripts to help you create colored versions of these as well.
from material-design-icons.
Install imagemagick
and try below command... works well for me
convert ic_apps_white.png -fuzz 75% -fill red -opaque white ic_apps_red.png
from material-design-icons.
Icon font #1 is also a good way to colorize things.
from material-design-icons.
I think it's not easy to tint PNG. I have to use photoshop to color it. If there's a website, just choose a pretty color, and preview the new icon, it would be better.
from material-design-icons.
@addyosmani do you know of any good resources about coloring assets for the web or other platforms?
@jestelle I've tried looking for npm modules that might help here. The challenge is faithfully tinting / re-coloring gets a little tricky to generate something you can reliably use. I'd personally use the same suggestion as you (SVG files).
I can explore writing a tinting tool to help, but did you mention you already have some scripts that can do color PNG generation?
from material-design-icons.
When I suggested tinting PNGs, this is what I had in mind:
http://jsfiddle.net/6avaeo5o/
Didn't actually use tinting, but actually used the icon as a mask, as a means to create an alternate color version of the icon.
Unfortunately this doesn't work in IE though, so maybe not realistic for most of you.
Although there might be some way to make it work in IE... maybe relying on SVGs for your masking...
http://thenittygritty.co/css-masking
from material-design-icons.
Ultimately using SVG or icon fonts may be a better choice :) but it's fun to explore other possibilities.
from material-design-icons.
Solved by using https://github.com/gclsoft/UIImage-Color on iOS
from material-design-icons.
Anyone know how to resolve this for Android? Writing for low-end devices, and can't use vector drawables.
EDIT: You can use imageView.setColorFilter
from material-design-icons.
Closing this issue because I believe it has been addressed. If not, feel free to reopen this issue or create a new one with more information.
from material-design-icons.
Related Issues (20)
- Icon Request: Coupon code or Promo code HOT 1
- Icon Request: Search for Events
- Error in sharp/edit_square symbol HOT 1
- Icon Request: AI Sparkle HOT 5
- Some icons not showing up.
- Icon Request: Antenna Dish
- Icon request: Network icons
- Icon Request: Variations of trophies and dates
- Web symbol for `star` doesn't have a non-fill version HOT 5
- Icon Request: Toilet
- We don't have Variable Fonts for Material yet HOT 1
- This project is incomplete
- The script to update this repo have been broken since February - All new icons since then are completely missing from the variable material symbols fonts ttf files. HOT 13
- Last update HOT 1
- change the thunderstorm icon and avoid confusion
- Ffv
- f91b4882103fbc1665e9e496846746003d29687a
- Új HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-design-icons.