-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Objective - Close #411 # Solution - Redesign `Color` to make `reset` representable, separate `NormalColor` and `RgbColor`. - Make contents of `Text`, `InnerText`, `TextContent`, etc public. - Redesign `TextFormat` trait to allow mutating a `&mut Text` without cloning. - Create `IntoText` trait which is basically the same as `Into<Cow<'a, Text>>` (can't implement the latter because of Rust's trait coherence rules) - Fallback to normal colors instead of webcolors for pre-1.16 server list pings. I couldn't figure out a good way to meaningfully reduce the size of `TextInner` so that it wouldn't need to be boxed in `Text`,
- Loading branch information
1 parent
11eecb8
commit 9c599dd
Showing
15 changed files
with
966 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.