Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase window-clone shadow size #1781

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions plugins/pip/PopupWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/WindowClone.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down