mirror of
https://github.com/elementary/gala.git
synced 2024-11-28 04:05:22 +03:00
Discovered that I can get the dim effect easier..
This commit is contained in:
parent
f1f69f1c4e
commit
9ac205c57c
@ -246,10 +246,8 @@ namespace Gala
|
||||
{
|
||||
var win = window.get_compositor_private () as Clutter.Actor;
|
||||
if (dim || !win.has_effects ()) {
|
||||
win.add_effect_with_name ("desat", new Clutter.DesaturateEffect (1));
|
||||
win.add_effect_with_name ("darken", new Clutter.ColorizeEffect ({180, 180, 180, 255}));
|
||||
} else {
|
||||
win.remove_effect_by_name ("desat");
|
||||
win.remove_effect_by_name ("darken");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user