Bug: Progress Bar color is set by raw Value (not the percent of progress)
Opened this issue · 0 comments
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)
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