Automatic Thumbnail for Base Color of Custom Materials

I often create paint colors that I reuse in projects using the HEX code of the paint using base color only. I then save them to my local library. It would be great if the thumbnail could automatically generated based on the color of the base color.

and please add a function to name a material directly when saving to local library using “add to local”

now i have to open the library every time after saving to rename the just saved material