change activity icons in 4.1?

change activity icons in 4.1?

by Stefan Schoch -
Number of replies: 2

Hi there,

I just updated my site from 3.9 to 4.1 and I notice, that all activity icons have changed and I even can set my prefered color for all icons (using LearnR theme). I appreciate that! 

But - in 3.9 I could install my own set of icons (I got from fontawesome) by simply overwriting the corresponding SVG files i.e. in these directories:

  • /theme/fordson/pics_plugins
  • /theme/fordson/pics_core
  • /mod/lightboxgallery/pix
  • /mod/choicegroup/pix
  • /mod/bigbluebuttonbb/pix
  • /mod/customcert/pix
  • /mod/zoom/pix

There seems to be a different logic of how icons are installed, I don't find the 'pics_plugins' or 'pic_core' directories any more, changing an individual iconfile i.e. in mod/assigment/pix doesn't seem to change anything from the user-perspective.

Question:

How can I install and user my own icons for all activities?


Stefan


Average of ratings: Useful (1)
In reply to Stefan Schoch

Re: change activity icons in 4.1?

by Stefan Schoch -

I found this article: Using images in a theme - MoodleDocs 

and I created the folder-structure 'pix_plugins' within the themes directory. After figuring out that the icons are no longer named 'icon.svg' but 'monologo.svg' I was able to install my preferred icons! smile 

One thing I still would like to change.
In 3.9, they looked like this (colored icon on white background):


In 4.1, they look like this (white icon on colored background):



How can I change this to make them look the same as in my old installation?


Stefan

Average of ratings: Useful (1)
In reply to Stefan Schoch

Re: change activity icons in 4.1?

by Ken Task -
Picture of Particularly helpful Moodlers

Following doesn't answer the question, but .... *now* would be a good time to put into action use of git for your dev site.

Am of the camp that puts function over form.  That's due to nature of Moodle theming being 'inline'.  After all (to me), if a site doesn't function, no teaching/learning can take place at all with a 'white screen of death'!

Third party addons to moodle - like themes and their icons/etc. should not affect core.   But, did see in your list at least one that is now core ... BBB.

With git, if there were an update to BBB, whatever local changes you made to the icons might/would be replaced.  Matter of fact, a simple git pull might complain it can't acquire all of the new core code or changes to core code due to your changes in BBB icons.

If you plan to use git for core, strongly advise that now is the time for your dev site! smile

'SoS', Ken