[gnome-shell] Allow status icons to receive clicks at edge of screen



commit 361461d1b9f96f67ea9a2e1810251f6bab02fa38
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Jun 3 22:24:59 2009 -0400

    Allow status icons to receive clicks at edge of screen
    
    This removes the border and padding and aligns the box to the top.  Perhaps we
    could push the padding down into the active area of the icon since it does look
    a bit nicer with it.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=583139
---
 js/ui/panel.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/js/ui/panel.js b/js/ui/panel.js
index aa9d4fd..a4a9390 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -12,7 +12,7 @@ const Button = imports.ui.button;
 const Main = imports.ui.main;
 
 const PANEL_HEIGHT = 32;
-const TRAY_HEIGHT = 28;
+const TRAY_HEIGHT = PANEL_HEIGHT - 1;
 const SHADOW_HEIGHT = 6;
 
 // The panel has a transparent white background with a gradient.
@@ -34,7 +34,7 @@ PANEL_BUTTON_COLOR.from_pixel(0x00000015);
 const PRESSED_BUTTON_BACKGROUND_COLOR = new Clutter.Color();
 PRESSED_BUTTON_BACKGROUND_COLOR.from_pixel(0x00000030);
 
-const TRAY_PADDING = 2;
+const TRAY_PADDING = 0;
 const TRAY_SPACING = 2;
 
 // Used for the tray icon container with gtk pre-2.16, which doesn't
@@ -44,7 +44,7 @@ TRAY_BACKGROUND_COLOR.from_pixel(0xefefefff);
 const TRAY_BORDER_COLOR = new Clutter.Color();
 TRAY_BORDER_COLOR.from_pixel(0x00000033);
 const TRAY_CORNER_RADIUS = 5;
-const TRAY_BORDER_WIDTH = 1;
+const TRAY_BORDER_WIDTH = 0;
 
 function Panel() {
     this._init();
@@ -118,7 +118,7 @@ Panel.prototype = {
         // The tray icons live in trayBox within trayContainer.
         // The trayBox is hidden when there are no tray icons.
         let trayContainer = new Big.Box({ orientation: Big.BoxOrientation.VERTICAL,
-                                          y_align: Big.BoxAlignment.CENTER });
+                                          y_align: Big.BoxAlignment.START });
         box.append(trayContainer, Big.BoxPackFlags.END);
         let trayBox = new Big.Box({ orientation: Big.BoxOrientation.HORIZONTAL,
                                     height: TRAY_HEIGHT,



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