Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Added backgroundOpacity option #74

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MrKragh
Copy link

@MrKragh MrKragh commented Jan 1, 2024

Hi there!

Thank you for this awesome project! I'm kind of lazy in terms of pleasing light/dark modes, and usually try to fix with a transparent background, and seemed like I could do that for my own Github Person page.

Anyhow, just wanted to contribute back so here is a PR.

To use add in the following to the JSON. "backgroundOpacity": 0.0 to make totally transparent and "backgroundOpacity": 1.0 is solid.

I know nothing about TypeScript , just call me Jon Snow! Hope I did it right by your standards and the PR makes sense.

@@ -732,6 +740,7 @@ const create3DContrib = (svg, userInfo, x, y, width, height, settings, isForcedA
const week = Math.floor(diffDate(startTime, cal.date.getTime()) / 7);
const baseX = offsetX + (week - dayOfWeek) * dx;
const baseY = offsetY + (week + dayOfWeek) * dy;
// ref. https://github.com/yoshi389111/github-profile-3d-contrib/issues/27
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't ask me how this occurred! I suspect my IDE playing a trick on me here! Sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant