[gnome-shell/wip/aggregate-menu: 31/48] status: Put arrow icons next to the separate status indicators
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 31/48] status: Put arrow icons next to the separate status indicators
- Date: Fri, 19 Jul 2013 10:09:03 +0000 (UTC)
commit f434ed32315ec57813c33997ed1b9c9e8bf8140b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jun 6 17:26:42 2013 -0400
status: Put arrow icons next to the separate status indicators
This is to indicate that it has a pulldown menu.
This is a part of the new system status design, see
https://wiki.gnome.org/GnomeShell/Design/Guidelines/SystemStatus/
for design details.
data/theme/gnome-shell.css | 3 ++-
js/ui/status/accessibility.js | 12 ++++++++++--
js/ui/status/keyboard.js | 7 ++++++-
3 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 0ce1ca8..31cc412 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -614,7 +614,8 @@ StScrollBar StButton#vhandle:active {
-boxpointer-gap: 4px;
}
-.panel-status-button-box {
+.panel-status-button-box,
+.panel-status-menu-box {
spacing: 4px;
}
diff --git a/js/ui/status/accessibility.js b/js/ui/status/accessibility.js
index e6be115..149c84a 100644
--- a/js/ui/status/accessibility.js
+++ b/js/ui/status/accessibility.js
@@ -3,6 +3,7 @@
const Gio = imports.gi.Gio;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
+const St = imports.gi.St;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
@@ -30,10 +31,17 @@ const HIGH_CONTRAST_THEME = 'HighContrast';
const ATIndicator = new Lang.Class({
Name: 'ATIndicator',
- Extends: PanelMenu.SystemStatusButton,
+ Extends: PanelMenu.Button,
_init: function() {
- this.parent('preferences-desktop-accessibility-symbolic', _("Accessibility"));
+ this.parent(0.0, _("Accessibility"));
+
+ this._hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
+ this._hbox.add_child(new St.Icon({ style_class: 'system-status-icon',
+ icon_name: 'preferences-desktop-accessibility-symbolic' }));
+ this._hbox.add_child(new St.Label({ text: '\u25BE' }));
+
+ this.actor.add_child(this._hbox);
let highContrast = this._buildHCItem();
this.menu.addMenuItem(highContrast);
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index e5eef5f..d65e774 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -336,7 +336,12 @@ const InputSourceIndicator = new Lang.Class({
this._container.connect('get-preferred-width', Lang.bind(this, this._containerGetPreferredWidth));
this._container.connect('get-preferred-height', Lang.bind(this, this._containerGetPreferredHeight));
this._container.connect('allocate', Lang.bind(this, this._containerAllocate));
- this.actor.add_actor(this._container);
+
+ this._hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
+ this._hbox.add_child(this._container);
+ this._hbox.add_child(new St.Label({ text: '\u25BE' }));
+
+ this.actor.add_child(this._hbox);
this.actor.add_style_class_name('panel-status-button');
// All valid input sources currently in the gsettings
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]