popupMenu: Hide ornament by default

We have always defaults to an empty ornament, so that menu items
are always aligned, even when radio items are used.

However radio items are fairly rare, so most of the time we end
up with an extra margin with no purpose. The design team now
prefers radio items to only align with each other, so that regular
items get the expected margin.

Change the defaults accordingly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2843>
This commit is contained in:
Florian Müllner 2023-07-13 19:04:20 +02:00 committed by Marge Bot
parent 8e9398be7e
commit 6bcb4f310f
3 changed files with 1 additions and 3 deletions

View File

@ -96,7 +96,7 @@ var PopupBaseMenuItem = GObject.registerClass({
this._ornamentIcon = new St.Icon({style_class: 'popup-menu-ornament'});
this.add(this._ornamentIcon);
this.setOrnament(Ornament.NONE);
this.setOrnament(Ornament.HIDDEN);
this._parent = null;
this._active = false;

View File

@ -257,7 +257,6 @@ class BluetoothToggle extends QuickMenuToggle {
ellipsize: Pango.EllipsizeMode.NONE,
line_wrap: true,
});
this._placeholderItem.setOrnament(PopupMenu.Ornament.HIDDEN);
this.menu.addMenuItem(this._placeholderItem);
this._deviceSection.actor.bind_property('visible',

View File

@ -244,7 +244,6 @@ const NMSectionItem = GObject.registerClass({
// Turn into an empty container with no padding
this.styleClass = '';
this.setOrnament(PopupMenu.Ornament.HIDDEN);
// Add intermediate section; we need this for submenu support
this._mainSection = new PopupMenu.PopupMenuSection();