[gnome-shell] panel: Center-align menu arrows
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] panel: Center-align menu arrows
- Date: Fri, 21 Jun 2019 21:13:31 +0000 (UTC)
commit 2e070ab8344c5af42a7f07daf1d0917027822b4c
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jun 14 18:58:50 2019 +0000
panel: Center-align menu arrows
Center alignment looks more balanced and makes it more likely that
the menu opens below the pointer position.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1351
js/ui/panel.js | 2 +-
js/ui/status/accessibility.js | 2 +-
js/ui/status/dwellClick.js | 2 +-
js/ui/status/keyboard.js | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index ef08b1aad..be02785a8 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -66,7 +66,7 @@ function _unpremultiply(color) {
class AppMenu extends PopupMenu.PopupMenu {
constructor(sourceActor) {
- super(sourceActor, 0.0, St.Side.TOP);
+ super(sourceActor, 0.5, St.Side.TOP);
this.actor.add_style_class_name('app-menu');
diff --git a/js/ui/status/accessibility.js b/js/ui/status/accessibility.js
index 7db39a222..4630f4d4b 100644
--- a/js/ui/status/accessibility.js
+++ b/js/ui/status/accessibility.js
@@ -32,7 +32,7 @@ const HIGH_CONTRAST_THEME = 'HighContrast';
var ATIndicator = GObject.registerClass(
class ATIndicator extends PanelMenu.Button {
_init() {
- super._init(0.0, _("Accessibility"));
+ super._init(0.5, _("Accessibility"));
this._hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
this._hbox.add_child(new St.Icon({ style_class: 'system-status-icon',
diff --git a/js/ui/status/dwellClick.js b/js/ui/status/dwellClick.js
index cb9f331f3..ca7dca6e2 100644
--- a/js/ui/status/dwellClick.js
+++ b/js/ui/status/dwellClick.js
@@ -34,7 +34,7 @@ const DWELL_CLICK_MODES = {
var DwellClickIndicator = GObject.registerClass(
class DwellClickIndicator extends PanelMenu.Button {
_init() {
- super._init(0.0, _("Dwell Click"));
+ super._init(0.5, _("Dwell Click"));
this._hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
this._icon = new St.Icon({ style_class: 'system-status-icon',
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index df8e9c2f1..ff2456a60 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -810,7 +810,7 @@ class InputSourceIndicatorContainer extends St.Widget {
var InputSourceIndicator = GObject.registerClass(
class InputSourceIndicator extends PanelMenu.Button {
_init() {
- super._init(0.0, _("Keyboard"));
+ super._init(0.5, _("Keyboard"));
this.connect('destroy', this._onDestroy.bind(this));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]