summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e2ffeea1..05e30bfe 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -97,7 +97,7 @@ fn color_to_hex(color: Color) -> String {
font_style: FontStyle::empty(),
};
paint::paint_text(
- &format!("#{:x?}{:x?}{:x?}", color.r, color.g, color.b),
+ &format!("#{:02x?}{:02x?}{:02x?}", color.r, color.g, color.b),
style,
&mut string,
)