status/bluetooth: Fix bluetooth placeholder text alignment

The padding specified for .bt-menu-placeholder was overridden by the
more specific.popup-menu-item:ltr/rtl padding. Also the ornament, was
still taking up space, as well as the spacing between the ornament and
the text.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6434
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2687>
This commit is contained in:
Sebastian Keller 2023-03-07 20:02:10 +01:00 committed by Marge Bot
parent 20a81d7866
commit e258cff264
2 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,7 @@
.popup-menu-icon { -st-icon-style: symbolic; } .popup-menu-icon { -st-icon-style: symbolic; }
} }
.bt-menu-placeholder { .bt-menu-placeholder.popup-menu-item {
@extend %title_4; @extend %title_4;
text-align: center; text-align: center;

View File

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