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

feat(style): implement From trait for crossterm to Style related structs #686

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

Valentin271
Copy link
Member

This PR includes the following From implementations:

  • from Attribute to Modifier
  • from Attributes to Modifier
  • from crossterm Color to Color
  • from ContentStyle to Style

This PR relates to #679. I've decided to split the work across multiple PRs to facilitate the reviewing process.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (2169a0d) 91.3% compared to head (d23dd84) 91.4%.

Files Patch % Lines
src/backend/crossterm.rs 98.2% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #686     +/-   ##
=======================================
+ Coverage   91.3%   91.4%   +0.1%     
=======================================
  Files         42      42             
  Lines      12992   13278    +286     
=======================================
+ Hits       11868   12149    +281     
- Misses      1124    1129      +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/style.rs Outdated Show resolved Hide resolved
src/style.rs Outdated Show resolved Hide resolved
src/style.rs Outdated Show resolved Hide resolved
Copy link
Member

@joshka joshka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve - with nits

src/backend/crossterm.rs Show resolved Hide resolved
src/backend/crossterm.rs Show resolved Hide resolved
Copy link
Sponsor Member

@orhun orhun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I likey

@orhun orhun changed the title feat(style): implement From trait for crossterm to ratatui Style related structs feat(style): implement From trait for crossterm to Style related structs Dec 14, 2023
@orhun orhun merged commit ebf1f42 into ratatui-org:main Dec 14, 2023
33 checks passed
@Valentin271 Valentin271 deleted the feat/into-style branch December 14, 2023 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants