[gnome-shell/overview-relayout: 11/15] all-app-view: Slight cleanup and style update



commit 6b087fd4dbed4809c82824000ce47ff7e9e45804
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 30 17:43:07 2010 +0200

    all-app-view: Slight cleanup and style update
    
    Being no longer an independent menu pane, the view's structure can
    be simplified a bit. Update the style to fit into the view selector.

 data/theme/gnome-shell.css |   15 +--------------
 js/ui/appDisplay.js        |   18 ++++++------------
 2 files changed, 7 insertions(+), 26 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 8384277..e5151b9 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -559,10 +559,7 @@ StTooltip {
 }
 
 .all-app {
-    border-radius: 10px;
-    background-color: #111111;
-    border: 2px solid #868686;
-    color: #ffffff;
+    padding: 10px;
 }
 
 .app-section-divider-container {
@@ -575,16 +572,6 @@ StTooltip {
     background-image: url("separator-white.png");
 }
 
-.all-app-controls-panel {
-    height: 30px;
-}
-
-.all-app-scroll-view {
-    padding-right: 10px;
-    padding-left: 10px;
-    padding-bottom: 10px;
-}
-
 #AppWell > .app-well-app {
     padding: 6px 12px;
 }
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 822786d..4de5f7b 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -148,18 +148,12 @@ AllAppDisplay.prototype = {
             Main.queueDeferredWork(this._workId);
         }));
 
-        let bin = new St.BoxLayout({ style_class: 'all-app-controls-panel',
-                                     reactive: true });
-        this.actor = new St.BoxLayout({ style_class: 'all-app', vertical: true });
-        this.actor.hide();
-
-        let view = new St.ScrollView({ x_fill: true,
-                                       y_fill: false,
-                                       style_class: 'all-app-scroll-view',
-                                       vshadows: true });
-        this._scrollView = view;
-        this.actor.add(bin);
-        this.actor.add(view, { expand: true, y_fill: false, y_align: St.Align.START });
+        this._scrollView = new St.ScrollView({ x_fill: true,
+                                               y_fill: false,
+                                               vshadows: true });
+        this.actor = new St.Bin({ style_class: 'all-app',
+                                  y_align: St.Align.START,
+                                  child: this._scrollView });
 
         this._appView = new ViewByCategories();
         this._appView.connect('launching', Lang.bind(this, this.close));



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