Add shadow to wallpaper clones while switching workspace (#1726)

This commit is contained in:
Leo 2023-07-19 04:54:55 +09:00 committed by GitHub
parent d0a21e2f53
commit e119dd5f62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,6 @@
} }
.workspace.decoration { .workspace.decoration {
border-radius: 4px;
box-shadow: box-shadow:
0 0 0 1px alpha(#000, 0.2), 0 0 0 1px alpha(#000, 0.2),
0 8px 10px 1px alpha(#000, 0.14), 0 8px 10px 1px alpha(#000, 0.14),

View File

@ -1871,9 +1871,11 @@ namespace Gala {
background_group.hide (); background_group.hide ();
wallpaper = new Clutter.Clone (background_group); wallpaper = new Clutter.Clone (background_group);
} }
wallpaper.add_effect (new Gala.ShadowEffect (40) { css_class = "workspace" });
tmp_actors.prepend (wallpaper); tmp_actors.prepend (wallpaper);
var wallpaper_clone = new Clutter.Clone (wallpaper); var wallpaper_clone = new Clutter.Clone (wallpaper);
wallpaper_clone.add_effect (new Gala.ShadowEffect (40) { css_class = "workspace" });
tmp_actors.prepend (wallpaper_clone); tmp_actors.prepend (wallpaper_clone);
// pack all containers // pack all containers