-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
refactor(tui): Use color instead of bars to distinguish sections of task list. #9365
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Skipped Deployments
|
Not to my knowledge. I think we would need to query the terminal for the default fg/bg colors (I do not know how to do this in a terminal agnostic way), some heuristic for deciding if bg was dark/light, and just have two sets of colors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Chris Olszewski <[email protected]>
Co-authored-by: Chris Olszewski <[email protected]>
Description
Screen real estate is valuable.
We were using horizontal bars to distinguish the header and footer from the task list itself. Instead, let's use color, and get rid of the bars.
Testing Instructions
👀
I checked light mode for color contrast, as well, and did the best I could. I don't know if there's a way to tell Ratatui to use different foreground colors for light vs. dark backgrounds? I at least couldn't find any documentation on it or example in our codebase.
Before:

After:
