Split unified blur amount into X and Y

macos-click-through
MultisampledNight 3 years ago
parent 4b264afa48
commit 5d26ec2930
No known key found for this signature in database
GPG Key ID: C81EF9B053977241

@ -35,7 +35,8 @@ pub struct RendererSettings {
scroll_animation_length: f32,
floating_opacity: f32,
floating_blur: bool,
floating_blur_amount: f32,
floating_blur_amount_x: f32,
floating_blur_amount_y: f32,
debug_renderer: bool,
profiler: bool,
}
@ -47,7 +48,8 @@ impl Default for RendererSettings {
scroll_animation_length: 0.3,
floating_opacity: 0.7,
floating_blur: true,
floating_blur_amount: 2.0,
floating_blur_amount_x: 2.0,
floating_blur_amount_y: 2.0,
debug_renderer: false,
profiler: false,
}

@ -256,7 +256,10 @@ impl RenderedWindow {
if self.floating_order.is_some() && settings.floating_blur {
let blur = blur(
(settings.floating_blur_amount, settings.floating_blur_amount),
(
settings.floating_blur_amount_x,
settings.floating_blur_amount_y,
),
None,
None,
None,

Loading…
Cancel
Save