Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
For some reason, the color of the text in the logtime view looked correct, but the background color was always the default one:
This happens for anyone who uses this extension. I've asked multiple people and they experience the same issue.
So I made a JS function that overrides the background color based on the user's selected theme color and the number of hours they've spent logged in.
I made it so that it never reaches full saturation. The color tops out at around 19 to 20 hours and from there it doesn't get more intense because otherwise the date wouldn't be readable:
I think it's a good enough approximation of how this used to work and most people won't ever spent over 19h logged in anyways.
I tried making this in CSS but I don't know how to get the number of hours in CSS and they're required for the calculation.