Discovered that I can get the dim effect easier..

This commit is contained in:
Tom Beckmann 2012-06-09 00:22:01 +02:00
parent f1f69f1c4e
commit 9ac205c57c

View File

@ -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");
}
}