-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 "default" table theme #11072
add "default" table theme #11072
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ pub enum TableMode { | |
Compact, | ||
WithLove, | ||
CompactDouble, | ||
Default, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't forget to move the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added these changes in #11076 |
||
#[default] | ||
Rounded, | ||
Reinforced, | ||
|
@@ -35,6 +36,7 @@ impl FromStr for TableMode { | |
"compact" => Ok(Self::Compact), | ||
"with_love" => Ok(Self::WithLove), | ||
"compact_double" => Ok(Self::CompactDouble), | ||
"default" => Ok(Self::Rounded), | ||
"rounded" => Ok(Self::Rounded), | ||
"reinforced" => Ok(Self::Reinforced), | ||
"heavy" => Ok(Self::Heavy), | ||
|
@@ -60,6 +62,7 @@ impl ReconstructVal for TableMode { | |
TableMode::Compact => "compact", | ||
TableMode::WithLove => "with_love", | ||
TableMode::CompactDouble => "compact_double", | ||
TableMode::Default => "rounded", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it reports There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, did that too. i sincerely hope you're out of ideas of other things to change here. 🤣 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm done 😄 |
||
TableMode::Rounded => "rounded", | ||
TableMode::Reinforced => "reinforced", | ||
TableMode::Heavy => "heavy", | ||
|
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.
You don't need the temporary and clone if we rearrange the
.map_err
into the.map
before the.transpose