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

Styling options #11

Merged
merged 4 commits into from
Jul 10, 2020
Merged

Styling options #11

merged 4 commits into from
Jul 10, 2020

Conversation

AarynSmith
Copy link
Collaborator

Fixes issue where long languages would push the line too long (Javascript was one character too long)
Now, automatically sizes the line based on language length, and time length, and can automatically size bar to fit.

Adds additional styling options for the progress bar set through environment variables:

  • GIST_BARSTYLE: "SOLIDLT" (default) "SOLIDMD" "SOLIDDK" "UNDERSCORE" and "EMPTY"
  • GIST_BARLENGTH: 21 (default for backward compatibility), hard set to a specific length or set to -1 to automatically size
  • GIST_TIMESTYLE: "LONG" (default) will use the standard time string from wakatime, "SHORT" will abbreviate it to "#h#m" (or just "#s" for "0 secs")

@YouEclipse
Copy link
Owner

YouEclipse commented Jul 10, 2020

Thanks for the PR, it is really awesome . i will make a update of the README_zh also.

@YouEclipse YouEclipse merged commit 61f1ea5 into YouEclipse:master Jul 10, 2020
@AarynSmith
Copy link
Collaborator Author

Glad you like it. I'd update the README_zh, but I believe you might be better qualified to handle that than I am. 😁

@AarynSmith AarynSmith deleted the styling-options branch July 15, 2020 16:37
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.

2 participants