Merge pull request #1165 from LoipesMas/transparency

Correctly apply opacity to floating windows
macos-click-through
LoipesMas 3 years ago committed by GitHub
commit 8682680c79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,15 +106,15 @@ impl GridRenderer {
.set_color(style.background(&self.default_style.colors).to_color());
}
// Only make background color transparent
if self.paint.color() == self.get_default_background() {
if is_floating {
self.paint
.set_alpha((255.0 * SETTINGS.get::<RendererSettings>().floating_opacity) as u8);
} else if (SETTINGS.get::<WindowSettings>().transparency - 1.0).abs() > f32::EPSILON {
} else if (SETTINGS.get::<WindowSettings>().transparency - 1.0).abs() > f32::EPSILON
// Only make background color transparent
&& self.paint.color() == self.get_default_background()
{
self.paint.set_alpha(0);
}
}
canvas.draw_rect(region, &self.paint);
}

Loading…
Cancel
Save