|
|
@ -8,6 +8,7 @@ use super::{CachingShaper, RendererSettings};
|
|
|
|
use crate::editor::{Colors, Style};
|
|
|
|
use crate::editor::{Colors, Style};
|
|
|
|
use crate::settings::*;
|
|
|
|
use crate::settings::*;
|
|
|
|
use crate::utils::Dimensions;
|
|
|
|
use crate::utils::Dimensions;
|
|
|
|
|
|
|
|
use crate::window::WindowSettings;
|
|
|
|
|
|
|
|
|
|
|
|
pub struct GridRenderer {
|
|
|
|
pub struct GridRenderer {
|
|
|
|
pub shaper: CachingShaper,
|
|
|
|
pub shaper: CachingShaper,
|
|
|
@ -99,7 +100,8 @@ impl GridRenderer {
|
|
|
|
.set_color(style.background(&self.default_style.colors).to_color());
|
|
|
|
.set_color(style.background(&self.default_style.colors).to_color());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if self.paint.color() == self.get_default_background() {
|
|
|
|
if (SETTINGS.get::<WindowSettings>().transparency - 1.0).abs() > f32::EPSILON &&
|
|
|
|
|
|
|
|
self.paint.color() == self.get_default_background() {
|
|
|
|
if is_floating {
|
|
|
|
if is_floating {
|
|
|
|
self.paint
|
|
|
|
self.paint
|
|
|
|
.set_alpha((255.0 * SETTINGS.get::<RendererSettings>().floating_opacity) as u8);
|
|
|
|
.set_alpha((255.0 * SETTINGS.get::<RendererSettings>().floating_opacity) as u8);
|
|
|
|