Open Hari-Bonda opened 3 years ago
Sir, any possibility of adding this into the plugin level and allowing us to set custom hexa colors? if its easy to implement and if you get time please do sir, because if you do it at plugin level it will make life easier to update plugin in future too.
https://wordpress.org/support/topic/option-to-select-less-bright-colors/#post-14279481
Hello Team,
Thanks a lot for making this plugin. we are using it from almost 1year.
we would like to recommend few features depending on the possibilities and feasibility consider adding them.
currently this plugin is making very bright colors which are not eye pleasing to avoid this we are trying to use custom colors https://i.imgur.com/Z8Ym6Gu.png but that is leading to another problem with profile page (developer took some reference from plugin, profile page banner color not updating)
please consider looking into this they did something cool idk .. but it just gives out very soft and pleasant colours https://github.com/flarum/core/blob/a6dd545dbc5c173bf470fdd9ce5c89fa5603d51c/js/src/common/utils/stringToColor.ts
reference link https://discuss.flarum.org/d/26434-where-can-i-get-list-of-profile-pic-color-codes-used-for-flarum
Thanks again for an a awesome plugin. 🙏
if possible please tell where to modify the code for less bright colors
@arielhr1987 Replied Hi @hari-bonda
Thanks for your recommendations, I think number one looks very nice and it would be a cool feature to add. What i didn’t understand was the exact problem you are facing while using custom backgrounds. The avatar background color doesn’t update if you change it in settings page?
To accomplish this no so bright color request you can do something like code below. I copied some code from this library https://github.com/mistic100/RandomColor.php which does exactly the same thing as the one you sent. Modify the code to fit your needs.
Exactly as you described SVG is the one that take less space among all formats. I have no idea how to decrease svg size, first think that comes to my mind is make the xml shorter. You can try something like this as a first approach, let me know how it works for you.
@ Hari Replied Thanks a zillion times, will try both and keep you posted.
What i didn’t understand was the exact problem you are facing while using custom backgrounds. The avatar background color doesn’t update if you change it in settings page?
I think this is something related to other factors i will ask concerned one to look into it. 👍