diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 01536eea9..a7cfc6593 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -195,7 +195,7 @@ StScrollBar StButton#vhandle:active { background-color: #4c4c4c; } -StButton.popup-menu-item:insensitive { +.popup-menu-item:insensitive { color: #9f9f9f; } @@ -234,13 +234,18 @@ StButton.popup-menu-item:insensitive { spacing: .5em; } -.popup-inactive-menu-item { +.popup-status-menu-item { font-weight: normal; color: #999; } -.popup-subtitle-menu-item { +.popup-inactive-menu-item, .popup-inactive-menu-item:insensitive { + color: white; +} + +.popup-subtitle-menu-item, .popup-subtitle-menu-item:insensitive { font-weight: bold; + color: white; } .popup-menu-icon { diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 28be350da..c4b6c4ea6 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -61,6 +61,9 @@ const PopupBaseMenuItem = new Lang.Class({ this.setSensitive(this.sensitive); + if (!this._activatable) + this.actor.add_style_class_name('popup-inactive-menu-item'); + if (params.style_class) this.actor.add_style_class_name(params.style_class); @@ -763,7 +766,7 @@ const PopupSwitchMenuItem = new Lang.Class({ { expand: true, span: -1, align: St.Align.END }); this._statusLabel = new St.Label({ text: '', - style_class: 'popup-inactive-menu-item' + style_class: 'popup-status-menu-item' }); this._statusBin.child = this._switch.actor; }, diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 89aa63db0..4e4e155ce 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1570,7 +1570,7 @@ const NMApplet = new Lang.Class({ this._client = NMClient.Client.new(); this._statusSection = new PopupMenu.PopupMenuSection(); - this._statusItem = new PopupMenu.PopupMenuItem('', { style_class: 'popup-inactive-menu-item', reactive: false }); + this._statusItem = new PopupMenu.PopupMenuItem('', { reactive: false }); this._statusSection.addMenuItem(this._statusItem); this._statusSection.addAction(_("Enable networking"), Lang.bind(this, function() { this._client.networking_enabled = true;