Skip to content

Commit

Permalink
the i32 converted to i8
Browse files Browse the repository at this point in the history
  • Loading branch information
ysekka committed Jun 21, 2023
1 parent d37cb3a commit 26d9abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pub mod notify {
command!(
Empty,
"notify {} {} {color} {msg}",
icon as i32,
icon as i8,
time.as_millis()
),
)?;
Expand All @@ -210,7 +210,7 @@ pub mod notify {
command!(
Empty,
"notify {} {} {color} {msg}",
icon as i32,
icon as i8,
time.as_millis()
),
)
Expand All @@ -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
Expand Down

0 comments on commit 26d9abf

Please sign in to comment.