[gnome-shell/wip/aggregate-menu: 100/101] theme: Implement the new sizing restrictions of the aggregate menu
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 100/101] theme: Implement the new sizing restrictions of the aggregate menu
- Date: Mon, 15 Jul 2013 17:20:16 +0000 (UTC)
commit ec9136d57da2101e580cb93d0fda783160facc1d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jul 1 14:19:12 2013 -0400
theme: Implement the new sizing restrictions of the aggregate menu
Ensure that the menu is always 320px and that there's 32px spacing
between items, as the design suggests.
data/theme/gnome-shell.css | 8 ++++++++
js/ui/panel.js | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 62c9d8a..bc1b48d 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -627,6 +627,14 @@ StScrollBar StButton#vhandle:active {
icon-size: 1.09em;
}
+.aggregate-menu {
+ width: 320px;
+}
+
+.aggregate-menu .popup-menu-item {
+ spacing: 32px;
+}
+
.system-switch-user-submenu-icon {
icon-size: 24px;
border: 1px solid #8b8b8b;
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 5eb8d4d..11c3333 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -852,6 +852,7 @@ const AggregateMenu = new Lang.Class({
_init: function() {
this.parent(0.0, _("Settings Menu"), false);
+ this.menu.actor.add_style_class_name('aggregate-menu');
this._indicators = new St.BoxLayout({ style_class: 'panel-status-indicators-box' });
this.actor.add_child(this._indicators);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]