Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Shields like style #402

Closed
hongbo-miao opened this issue Aug 1, 2023 · 5 comments
Closed

Shields like style #402

hongbo-miao opened this issue Aug 1, 2023 · 5 comments

Comments

@hongbo-miao
Copy link

hongbo-miao commented Aug 1, 2023

I am wondering is it possible to provide a shields-like style badge? Basically lowercase and blue. Thanks!

image

To compare, here is current style:

image

BTW, thanks for this tool! 😃

@boyter
Copy link
Owner

boyter commented Aug 1, 2023

Yep on the list. I need to redo the whole thing anyway as it costs more than I would like to pay.

@boyter
Copy link
Owner

boyter commented Aug 4, 2023

OK https://github.com/boyter/scc/blob/master/cmd/badges/main.go you can find the code in there. Adding shields like support might be an idea just by having a param passed in, but regardless ill need to see about converting to the above.

Let me know if you are interested in adding this.

@boyter
Copy link
Owner

boyter commented Oct 24, 2024

Great with the excellent work from @erjdev this is now possible. You can configure the look and feel using the below URL params,

font-color
font-shadow-color
top-shadow-accent-color
title-bg-color
badge-bg-color

EG the scc count with a horrible red font and blue background https://sloc.xyz/github/boyter/scc?font-color=ff0000&badge-bg-color=0000ff

@boyter boyter closed this as completed Oct 24, 2024
@boyter boyter reopened this Oct 24, 2024
@boyter
Copy link
Owner

boyter commented Oct 24, 2024

Note still need to get the lowercase bit done, but ill look into that now.

@boyter
Copy link
Owner

boyter commented Oct 24, 2024

Done. https://sloc.xyz/github/boyter/scc?font-color=ff0000&badge-bg-color=0000ff&lower=true

Now can set lower to lower the title.

@boyter boyter closed this as completed Oct 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: DONE
Development

No branches or pull requests

2 participants