-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Add underline color style for crossterm backend #310
Conversation
af916d6
to
2f2e457
Compare
Codecov Report
@@ Coverage Diff @@
## main #310 +/- ##
==========================================
- Coverage 83.85% 83.84% -0.02%
==========================================
Files 38 38
Lines 8045 8082 +37
==========================================
+ Hits 6746 6776 +30
- Misses 1299 1306 +7
|
That clippy error seems unrelated - probably due to today's rust 1.71.0 update. |
The clippy check seems to fail on a file I haven't touched, and I can't replicate it on my computer. EDIT: I was still on 1.70 on my computer, seems like 1.71 is the culprit. |
Fix for lint is in #311 |
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.
LGTM generally. It's a small targeted change. I'll wait for @orhun's feedback on this before merging.
…i#308) This commit adds the underline_color() function to the Style and Cell structs. This enables setting the underline color of text on the crossterm backend. This is a no-op for the termion and termwiz backends as they do not support this feature.
Rebased on top of main and added a link to some documentation. |
The current fail is a code coverage reduction can you please add a couple of tests to make that happy? |
I'm not sure I understand why it says it's a reduction in coverage. The coverage went up on all the files I modified. |
I just too a better look. The missing coverage is on the crossterm backend (which is at 0% coverage), apologies for the wrong direction. |
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.
LGTM
…i#308) (ratatui#310) This commit adds the underline_color() function to the Style and Cell structs. This enables setting the underline color of text on the crossterm backend. This is a no-op for the termion and termwiz backends as they do not support this feature.
Fixes #308.