I also tried this:
[alt=" Toggle notifications menu "] { background: white!important; }
And the background worked but the "fill" option on the svg didn't. I guess because i couldn't identify what the correct path for the img :/
I also tried this:
[alt=" Toggle notifications menu "] { background: white!important; }
And the background worked but the "fill" option on the svg didn't. I guess because i couldn't identify what the correct path for the img :/
Here is the link to the discussion where I found a solution for a similar request.
https://moodle.org/mod/forum/discuss.php?d=349402#p1409794
The alternative is find the SVG images and copy them from moodle/pix/i/messages.svg and moodle/pix/t/notifications.svg
Then place them in a folder in the root directory of your theme. Name this new folder pix_core
and add the images into their respective folders I and t
so so the list of directories is as follows:
moodle/
theme/
yourtheme/
pix_core/
i/ notifications.svg
t/ messages.svg
Here is the fun bit...
using Notepad open the svg files and find the part of the code that says
fill: #999999;
here is source code for the svg file
https://github.com/lazydaisy/moodle/commit/43f5b288c22be067d769bb7c0df501fb7ce70d0a
and change to
fill: #ffffff;
Save and then check to see if the images change color. if not then do a Purge all caches
If it doesn't work then the images that are being used are not svg they will be png or gif
hope it helps?
Mary
Hi Rafael,
you could try
filter: brightness(1.5)
to make the gray icons whiter via CSS.
You might need to add -webkit-filter for support on some browser, and it won't work on IE11, but might be handy in some situations.
Excellent!