Code Monkey home page Code Monkey logo

Comments (10)

jestelle avatar jestelle commented on May 2, 2024 1

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.

vijayrawatsan avatar vijayrawatsan commented on May 2, 2024 1

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.

evgenyz avatar evgenyz commented on May 2, 2024

Icon font #1 is also a good way to colorize things.

from material-design-icons.

gclsoft avatar gclsoft commented on May 2, 2024

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 avatar addyosmani commented on May 2, 2024

@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.

jestelle avatar jestelle commented on May 2, 2024

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.

jestelle avatar jestelle commented on May 2, 2024

Ultimately using SVG or icon fonts may be a better choice :) but it's fun to explore other possibilities.

from material-design-icons.

gclsoft avatar gclsoft commented on May 2, 2024

Solved by using https://github.com/gclsoft/UIImage-Color on iOS

from material-design-icons.

vincent-paing avatar vincent-paing commented on May 2, 2024

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.

RoelN avatar RoelN commented on May 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.