From fb3ceda0979aac0ee412286397591fbf1c5cf9eb Mon Sep 17 00:00:00 2001 From: Arsam Kazempour Date: Wed, 21 Jun 2023 05:51:41 +0300 Subject: [PATCH] the i32 converted to i8 --- src/ctl.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ctl.rs b/src/ctl.rs index 586559b..6886072 100644 --- a/src/ctl.rs +++ b/src/ctl.rs @@ -192,7 +192,7 @@ pub mod notify { command!( Empty, "notify {} {} {color} {msg}", - icon as i32, + icon as i8, time.as_millis() ), )?; @@ -210,7 +210,7 @@ pub mod notify { command!( Empty, "notify {} {} {color} {msg}", - icon as i32, + icon as i8, time.as_millis() ), ) @@ -221,7 +221,7 @@ pub mod notify { /// A 8-bit color with a alpha channel #[derive(Copy, Clone, MDisplay, Constructor)] -#[display(fmt = "rgba({}{}{}{})", "_0", "_1", "_2", "_3")] +#[display(fmt = "rgba({:02x}{:02x}{:02x}{:02x})", "_0", "_1", "_2", "_3")] pub struct Color(u8, u8, u8, u8); /// Provides things to setting props