Correct activity icon colors, resolves #831 #832
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make activity icons black before applying color filters for final color.
Looking at https://codepen.io/sosuke/pen/Pjoqqp (which I assume the CSS filter calculation is based on, same as in Moodle core up until 5.0 (see MDL-83725)) I saw this paragraph:
In Moodle 4.4 (see MDL-78284) the core activity icons got replaced by new non-black ones. Therefore the CSS filters result in incorrect colors. For some colors this difference is actually noticeable, especially if you have third-party activities with icons with base color black next to core activities with icons with this non-black base color. I'm fixing this in Moodle core through MDL-84306 and it is necessary to apply that same fix here.