From 051329702994d3c88273cab3d58e01e411ca2d60 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 27 Apr 2010 10:35:32 -0400 Subject: [PATCH] [panel] Remove vertical padding for panel-button This fixes the status menu requesting 27 pixels, which causes the slicer for the icon to overdraw. https://bugzilla.gnome.org/show_bug.cgi?id=616951 --- data/theme/gnome-shell.css | 2 +- js/ui/statusMenu.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 994e63c95..a3baff68a 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -119,7 +119,7 @@ StTooltip { } .panel-button { - padding: 4px 12px 3px; + padding: 0px 12px; border-radius: 5px; border-radius-bottomleft: 0px; border-radius-bottomright: 0px; diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js index 1cf0c411e..6fe87ad5f 100644 --- a/js/ui/statusMenu.js +++ b/js/ui/statusMenu.js @@ -32,7 +32,7 @@ StatusMenu.prototype = { this.actor.connect('destroy', Lang.bind(this, this._onDestroy)); this._iconBox = new St.Bin(); - this.actor.add(this._iconBox, { y_align: St.Align.MIDDLE }); + this.actor.add(this._iconBox, { y_align: St.Align.MIDDLE, y_fill: false }); let textureCache = St.TextureCache.get_default(); // FIXME: these icons are all wrong (likewise in createSubMenu) @@ -45,7 +45,7 @@ StatusMenu.prototype = { this._presence.getStatus(Lang.bind(this, this._updatePresenceIcon)); this._name = new St.Label({ text: this._user.get_real_name() }); - this.actor.add(this._name, { expand: true, y_align: St.Align.MIDDLE }); + this.actor.add(this._name, { y_align: St.Align.MIDDLE, y_fill: false }); this._userNameChangedId = this._user.connect('notify::display-name', Lang.bind(this, this._updateUserName)); this._createSubMenu();