-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
More Readable UI #10
More Readable UI #10
Conversation
Changes: - moved the battery percentage from the gauge to the title of the section - bold all section titles - surround section titles with "|" symbols - bold and underline subsection titles (removed dark grey color)
Thank you for this contribution! For the reference, screenshots for current
It is an interesting approach with moving state of charge directly into the header itself.
I'm sorry, but I do not like this change, it adds too much visual noise and distracts from the main content; I'm strongly against merging it. One possible solution is too add spaces before and after the block label, that should help with readability.
Same to the previous change, bold and underline are too noisy, but removing dark grey color looks better. To summarize, I tried to draw what can be changed to make it look both clean and also readable: Let me know what are you thinking about it. |
Changes: - moved percentage label to separate block - remove title bolding & surround titles with spaces - remove subtitle bolding (still underlined) - "State of charge" -> "Charge Percentage"
Thanks for your detailed and helpful feedback! I agree with your comments about overcluttering the UI. I have added the more subtle spaces around the titles and removed the bolding of the titles. I also removed the bolding on the subsection titles (although I kept the underlines to distinguish each subsection title from the data points). Regarding the inverted colors for the charge status, I looked into adding that feature. However, it seems that the Gauge widget from tui-rs doesn't provide an interface to control the text background separately from the colors of the Gauge as far as I can tell. Thus, we would need to either write a wrapper around the Gauge widget or write a custom widget to implement this (doable, but might be overkill for this component). An alternative solution for making the percentage more readable is to separate it into its own Block next to the Gauge. You can view this change in the screenshot below (along with the other fixes): Let me know what you think about this design. Along the way, I also thought that "Charge Percentage" might be a better name than "State of charge" for that section. If you don't like that name, I can revert it back to "State of charge." |
You are right that subsections should be separated from each other somehow; dark grey color for these titles were adding enough visual space to do that, but now it is problematic. Also, these newly appeared colons should be removed too, table columns are short enough, so it is easy to match keys with the corresponding values and colons are not adding any value at all.
Yeah, it is totally not worth the fuzz, thanks for checking that out.
That looks nice! It also reminds me how I like the idea that the gauge and its text do not have any border between them, they look semantically tied together. Since Also note how text color is changed based on its value — "yellow" and "red" colors are used to attract the users' attention, but if everything is okay it is rendered in grey color.
"State of charge" is an industry standard, I prefer to leave it as is. While the title might be confusing from a first glance (especially if you are not familiar with the correct terms), gauge and its value are explaining what is represented in there. |
Changes: - removed block borders between gauge and percentage - added separator character between gauge and percentage - color of the percentage changes if battery low - removed colons from subsection keys - changed subsection titles to be bolded (no underline) - "Charge Percentage" -> "State of charge"
I love that! Box drawing character looks kinda foreign, but the whitespace separator suits here amazingly. I'm still not sure what would be the best option about making gauge text gray: it looks organic in To be honest, first option (with both gauge and text having the same color all the time) looks more solid now, so my first idea about making them behave differently was wrong. What is your opinion on that? |
Since this PR got kinda stale, I decided to merge it after all since it contains a lot of UI improvements. Thank you @lyokum once again for making it! |
Changes:
section