|
|
@ -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(
|
|
|
|