[gnome-shell] Center the search results as well



commit 310dc10c4dfbe86e62e660333e00f1aebfa248cd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Feb 25 14:48:06 2013 -0500

    Center the search results as well
    
    Use overlay_scrollbars and the same padding.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694701

 data/theme/gnome-shell.css |    1 +
 js/ui/searchDisplay.js     |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index d1655fc..a3575d9 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -860,6 +860,7 @@ StScrollBar StButton#vhandle:active {
     padding: 4px 16px;
 }
 
+.search-display > StBoxLayout,
 .all-apps > StBoxLayout,
 .frequent-apps > StBoxLayout {
     /* horizontal padding to make sure the scrollbar doesn't overlap content */
diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js
index 9c6c063..c54cd00 100644
--- a/js/ui/searchDisplay.js
+++ b/js/ui/searchDisplay.js
@@ -331,7 +331,8 @@ const SearchResults = new Lang.Class({
 
         this._scrollView = new St.ScrollView({ x_fill: true,
                                                y_fill: false,
-                                               style_class: 'vfade' });
+                                               overlay_scrollbars: true,
+                                               style_class: 'search-display vfade' });
         this._scrollView.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
         this._scrollView.add_actor(scrollChild);
         let action = new Clutter.PanAction({ interpolate: true });


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