-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.11, 4.4.1
In moodle we can override icons by putting them in corresponding directories in a theme.
https://moodledev.io/docs/4.5/apis/plugintypes/theme/images#override-images
There is a method has_monologo_icon in /lib/classes/component.php
The method does not take into account the presence of monologo icons in the active theme.
This method is used in methods:
find_all_for_course in /lib/classes/component.php (4.1) or /course/classes/local/repository/content_item_readonly_repository.php (4.4)
get_icon_url in /lib/modinfolib.php
As a result, the icons get the 'nofilter' class or misses the 'filtericon' parameter, and even if there are corresponding monologo icons in the theme, the CSS filter is not applied to them.
The CSS filter should work for monologo icons added in the active theme.
Might be related to https://tracker.moodle.org/browse/MDL-81938 seems like something else though.
- has been marked as being related by
-
MDL-79947 Activity icons named icon.png or icon.svg are not allowed on theme pix_plugins folder
-
- Open
-
-
MDL-81938 Activity chooser doesn't filter custom icons for preconfigured LTI tools
-
- Development in progress
-
- is a regression caused by
-
MDL-77105 Non-monologo icons are being rendered as whitened out
-
- Closed
-