Formatting

macos-click-through
LoipesMas 3 years ago committed by Keith Simmons
parent a6f5906fbd
commit b8b9573168

@ -75,11 +75,16 @@ impl GridRenderer {
} }
pub fn get_default_background(&self) -> Color { pub fn get_default_background(&self) -> Color {
let mut transparency = {SETTINGS.get::<WindowSettings>().transparency}; let mut transparency = { SETTINGS.get::<WindowSettings>().transparency };
if transparency < 1.0 { if transparency < 1.0 {
transparency = 0.0; transparency = 0.0;
} }
self.default_style.colors.background.unwrap().to_color().with_a((255.0 * transparency) as u8) self.default_style
.colors
.background
.unwrap()
.to_color()
.with_a((255.0 * transparency) as u8)
} }
pub fn draw_background( pub fn draw_background(

Loading…
Cancel
Save