afonsof / jenkins-material-theme

Beautify your Jenkins with the Material Design theme!
http://afonsof.com/jenkins-material-theme
MIT License
1.72k stars 355 forks source link

Icons Not Overrriden for "Dashboard View Plugin" #75

Open javiernaval opened 8 years ago

javiernaval commented 8 years ago

I have recently linked jenkins-matherial-theme in our Jenkins, amazing job. But in our home page the weather icons aren't replaced. I've seen that is due to the "Dashboard View Plugin"

https://wiki.jenkins-ci.org/display/JENKINS/Dashboard+View

They have included the images without any 'class' in them.

<img src="/jenkins/static/90efd0f1/images/16x16/health-00to19.png" alt="Build stability: 4 out of the last 5 builds failed." title="Build stability: 4 out of the last 5 builds failed.">

My solution for this is using the same styles used to overwrite the color balls:

[src$='blue.png']

Like this:

[src$='health-80plus.png'] { background-image: url(data:image/svg+xml;base64,PHN... }

If you agree that this is the solution I can send my file with the modifications if it's from any help.

Regards

afonsof commented 7 years ago

Hi @javiernaval, could you create a Pull Request with these modifications?