[gnome-shell] Magnifier: use the system noise texture for the dead area



commit f8f4d0f64650dbf63a85678087c1ceb76fb9d484
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Feb 13 17:24:46 2014 +0100

    Magnifier: use the system noise texture for the dead area
    
    The design says that the noise texture is the implicit bottom
    layer, and so it's appropriate to use it togheter with the default
    color to cover the dead area outside the screen which becomes
    visibile when scrolling.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724305

 js/ui/magnifier.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index f64ac3b..5cc001e 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -11,6 +11,7 @@ const Mainloop = imports.mainloop;
 const Meta = imports.gi.Meta;
 const Signals = imports.signals;
 
+const Background = imports.ui.background;
 const FocusCaretTracker = imports.ui.focusCaretTracker;
 const Main = imports.ui.main;
 const MagnifierDBus = imports.ui.magnifierDBus;
@@ -1198,8 +1199,11 @@ const ZoomRegion = new Lang.Class({
         // Add a background for when the magnified uiGroup is scrolled
         // out of view (don't want to see desktop showing through).
         this._background = new Clutter.Actor({ background_color: Main.DEFAULT_BACKGROUND_COLOR,
+                                               layout_manager: new Clutter.BinLayout(),
                                                width: global.screen_width,
                                                height: global.screen_height });
+        let noiseTexture = (new Background.SystemBackground()).actor;
+        this._background.add_actor(noiseTexture);
         mainGroup.add_actor(this._background);
 
         // Clone the group that contains all of UI on the screen.  This is the


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]