CurseForgeBadge-Unofficial icon indicating copy to clipboard operation
CurseForgeBadge-Unofficial copied to clipboard

colors dont works

Open kittech0 opened this issue 3 years ago • 2 comments

i dont know but im trying change colors and when im trying to do https://cf.way2muchnoise.eu/short_adventure-of-fox-beggining-of-jurney(6441A4-E04E14).svg?badge_style=for_the_badge its just changing into black and idk what to do

kittech0 avatar Jan 04 '22 20:01 kittech0

I think two colors are not supported:

https://github.com/way2muchnoise/CurseForgeBadge-Unofficial/blob/master/CurseForgeBadge.py#L82

@app.route('/<style>_<project>_<prefix>_<suffix>(<l_colour>).svg')
@app.route('/<style>_<project>_<suffix>(<l_colour>-<r_colour>-<text_colour>-<shadow_colour>-<logo_colour>).svg')
@app.route('/<style>_<project>_<prefix>_<suffix>(<l_colour>-<r_colour>-<text_colour>-<shadow_colour>-<logo_colour>).svg')

You should try to define text/shadow/logo colors and you need a suffix (downloads?) Something like that

https://cf.way2muchnoise.eu/short_564326_downloads(6441A4-E04E14-fff-fff-fff).svg?badge_style=for_the_badge

Hint: There seems to be an issue with "-" characters, so I changed it to your modpack id. :)

cech12 avatar Apr 06 '22 14:04 cech12

Yeah, the color stuff is not perfect 😅 and using the curseforge ID always solves a lot of issues as well

way2muchnoise avatar Apr 06 '22 14:04 way2muchnoise