mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-01 23:51:46 -04:00
Don't tint if colors are default
This commit is contained in:
@@ -309,6 +309,7 @@ fn on_notify_ev(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_color_to_i32(cs: &str) -> Result<i32, csscolorparser::ParseColorError> {
|
||||
let color = csscolorparser::parse(cs)?;
|
||||
let [r, g, b, _] = color.to_rgba8();
|
||||
|
||||
Reference in New Issue
Block a user