[gnome-shell] [panel] Remove vertical padding for panel-button
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [panel] Remove vertical padding for panel-button
- Date: Tue, 27 Apr 2010 17:10:38 +0000 (UTC)
commit 051329702994d3c88273cab3d58e01e411ca2d60
Author: Colin Walters <walters verbum org>
Date: Tue Apr 27 10:35:32 2010 -0400
[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 994e63c..a3baff6 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 1cf0c41..6fe87ad 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]