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

Bug: Progress Bar color is set by raw Value (not the percent of progress) #214

Open
7 of 13 tasks
cjolson opened this issue Feb 7, 2023 · 0 comments
Open
7 of 13 tasks
Assignees
Labels
bug/issue Something isn't working

Comments

@cjolson
Copy link

cjolson commented Feb 7, 2023

Bug Description

I am using progress bars to track the progress in book I'm reading. I set the max to the total number of pages and value to the current page I'm on. I noticed that the colors were not behaving as expected (see Screenshot).

What I discovered is that the color changes as a result of the raw value – not based on the percentage of the max. In a book with a max of 392 pages, setting value to 90 will result in a green bar even though this would only be 22% complete.

To Reproduce

Set a progress bar with a max higher than 100. Any value given over 100 is red (even if it should be another color). For values under 100, the color is set as if the value were a percent.

Expected behavior

The progress bar should change based on the percent complete even if the max is greater than 100.

Relevant Screenshot(s)

Screenshot 2023-02-07 at 11 19 50 AM

Obsidian Version

1.1.9

Installer Version

1.1.9

Font Size

16

Which editor are you using?

  • New Editor
  • Legacy Editor

In which mode(s) does the problem occur? (if applicable)

  • Reading View (Preview)
  • Editing View - Source Mode
  • Editing View - Live Preview

Which operating system?

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Checklist

  • I updated to the latest version of the theme (Settings → Appearance → Themes - Manage → Update).
  • I made sure that the issue is related to this theme by checking that the problem does not occur with the default theme.
  • If the bug occured after updating the theme, I read the last couple Releases to make sure the bug is not an intentional change.

Additional Context

No response

@cjolson cjolson added the bug/issue Something isn't working label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/issue Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants