Skip to content

Commit

Permalink
improve color parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jhspetersson committed Dec 26, 2024
1 parent a9a3a0a commit c6cabc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub fn color_str_to_rgb_str(color: &str) -> String {
"lightmagenta" => "ff00ff",
"cyan" => "008080",
"lightcyan" => "00ffff",
"white" => "c0c0c0",
"white" | "default" => "c0c0c0",
"lightgray" | "lightgrey" => "ffffff",
s => match s.parse::<u8>() {
Ok(n) => fixed_to_rgb_str(n),
Expand Down

0 comments on commit c6cabc5

Please sign in to comment.