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
This commit is contained in:
parent
00f9b7bf69
commit
2e070ab834
@ -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');
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user