theme: Restrict the aggregate menu to 320px

Like in the designs. This also requires that we don't put a min-width
on sliders, as 15em is smaller than 320px.

https://bugzilla.gnome.org/show_bug.cgi?id=705845
This commit is contained in:
Jasper St. Pierre 2013-07-01 14:19:12 -04:00
parent cb09ae5cc0
commit 978ab2cdaa
2 changed files with 5 additions and 1 deletions

View File

@ -127,7 +127,6 @@ StScrollBar StButton#vhandle:active {
.slider { .slider {
height: 1em; height: 1em;
min-width: 15em;
-slider-height: 0.3em; -slider-height: 0.3em;
-slider-background-color: #333333; -slider-background-color: #333333;
-slider-border-color: #5f5f5f; -slider-border-color: #5f5f5f;
@ -631,6 +630,10 @@ StScrollBar StButton#vhandle:active {
icon-size: 1.09em; icon-size: 1.09em;
} }
.aggregate-menu {
width: 320px;
}
.system-switch-user-submenu-icon { .system-switch-user-submenu-icon {
icon-size: 24px; icon-size: 24px;
border: 1px solid #8b8b8b; border: 1px solid #8b8b8b;

View File

@ -846,6 +846,7 @@ const AggregateMenu = new Lang.Class({
_init: function() { _init: function() {
this.parent(0.0, _("Settings Menu"), false); 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._indicators = new St.BoxLayout({ style_class: 'panel-status-indicators-box' });
this.actor.add_child(this._indicators); this.actor.add_child(this._indicators);