[Feature Request] Change MDI/SI color on a per-icon basis #1372
-
DescriptionMaterial Design Icons are an amazing addition. Right now, they are all grey. It would be amazing to be able to change an icons color. For example, when using them for various NextCloud services, it would be great to pass the NC color code to these services. Or when using them for something like Piped (simply a red capital P) to be able to make it red. Possible syntax in order to add this: Right now, I think Homepage checks whether the icon starts with "mdi-". Simply adding an optional color code at the end (e.g. "mdi-email-#123456") would not interfer with current configs and checking whether any "mdi-" icon ends with "-#[6 digit hex code]" should be feasible, right? OtherNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
With SimpleIcon support, it would be awesome to extend this to Simple Icons as well. They even have a CDN that auto-recolors the icons - sadly, Homepage doesn't use that one yet. At least for SI, implementing custom per-icon colors might be as easy as switching the CDN to that one? |
Beta Was this translation helpful? Give feedback.
-
The code change to make custom colors possible should be quite simple from what I can tell, and it should not break any existing functionality. Only
The idea is to test whether the icon ends with a color code, which would be "-#123456" for example. If not, just continue as normal, if so then remove that part from the name and set the icon color to that color code. That should work in principle, right? |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically closed because it was marked as answered. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
Implemented with #1724