From 433c4e911b86d1e22e8e1a6100b9ef2512025299 Mon Sep 17 00:00:00 2001 From: Leo Date: Sat, 28 Oct 2023 03:29:20 +0900 Subject: [PATCH] Increase `window-clone` shadow size (#1781) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Danielle Foré --- plugins/pip/PopupWindow.vala | 3 +-- src/Widgets/WindowClone.vala | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/pip/PopupWindow.vala b/plugins/pip/PopupWindow.vala index 4db654766..270b71c8a 100644 --- a/plugins/pip/PopupWindow.vala +++ b/plugins/pip/PopupWindow.vala @@ -7,7 +7,6 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor { private int button_size; private int container_margin; - private const int SHADOW_SIZE = 100; private const uint FADE_OUT_TIMEOUT = 200; private const float MINIMUM_SCALE = 0.1f; private const float MAXIMUM_SCALE = 1.0f; @@ -88,7 +87,7 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor { container = new Clutter.Actor (); container.reactive = true; container.set_scale (0.35f, 0.35f); - container.add_effect (new ShadowEffect (SHADOW_SIZE) { css_class = "window-clone" }); + container.add_effect (new ShadowEffect (55) { css_class = "window-clone" }); container.add_child (clone); container.add_action (move_action); diff --git a/src/Widgets/WindowClone.vala b/src/Widgets/WindowClone.vala index e4625beeb..14af8f698 100644 --- a/src/Widgets/WindowClone.vala +++ b/src/Widgets/WindowClone.vala @@ -241,7 +241,7 @@ public class Gala.WindowClone : Clutter.Actor { if (window.fullscreen || window.maximized_horizontally && window.maximized_vertically) { if (shadow_effect == null) { - shadow_effect = new ShadowEffect (40) { css_class = "window-clone" }; + shadow_effect = new ShadowEffect (55) { css_class = "window-clone" }; shadow_opacity = 0; clone.add_effect_with_name ("shadow", shadow_effect); }