skills-chart-widget icon indicating copy to clipboard operation
skills-chart-widget copied to clipboard

Feature request: Font color for image

Open ppizarror opened this issue 3 years ago • 2 comments
trafficstars

Hi! I would like to have the ability to change the font color of the labels and the legend of the image. For the current behaviour, for darker bg colors, the text is not visible:

For example: https://cr-skills-chart-widget.azurewebsites.net/api/api?username=ppizarror&bg=261719 Captura de Pantalla 2021-11-23 a la(s) 19 25 54

For example, if both fg-label and fg-legend are set to #fff the results are much better: Captura de Pantalla 2021-11-23 a la(s) 19 26 27

The other alternative I can think of is to set a text fill color that contrasts the background of the image automatically, thus, for white background '#000' is set. For example, https://stackoverflow.com/questions/35969656/how-can-i-generate-the-opposite-color-according-to-current-color invertColor can be used.

Thanks

ppizarror avatar Nov 23 '21 22:11 ppizarror

I am interested in this too. As there is no Dark Theme for the chart, changing colors is a way to achieve it. But there is no option for languages labels' color selection.

I can help to implement it if one of the main devs can describe me the project/it's structure and how stuff are intended.

formidablae avatar Jan 09 '22 10:01 formidablae

+1 for this feature

MateoCerquetella avatar Oct 20 '22 21:10 MateoCerquetella