accessibility/keyboard: Align the panelMenu button style

This get's rid of the single-indicator introduced in one of the latest
commits. This was causing the accessibility pill in the top panel
 to have different padding from the keyboard layout pill.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1615>
This commit is contained in:
Razze 2021-02-02 01:51:15 +01:00 committed by Marge Bot
parent 7aa36ad239
commit ed628b90d7
3 changed files with 8 additions and 8 deletions

View File

@ -72,16 +72,16 @@ $panel_transition_duration: 250ms; // same as the overview transition duration
}
}
// single indicator
.single-indicator {
margin-left: $base_margin + 3px;
margin-right: $base_margin + 3px;
}
// status area icons
.system-status-icon {
icon-size: $base_icon_size;
padding: $base_padding - 1px;
margin: 0 $base_margin;
}
.panel-status-indicators-box .system-status-icon,
.panel-status-menu-box .system-status-icon {
margin: 0;
}
// app menu icon

View File

@ -35,7 +35,7 @@ class ATIndicator extends PanelMenu.Button {
super._init(0.5, _("Accessibility"));
this.add_child(new St.Icon({
style_class: 'single-indicator system-status-icon',
style_class: 'system-status-icon',
icon_name: 'preferences-desktop-accessibility-symbolic',
}));

View File

@ -829,7 +829,7 @@ class InputSourceIndicator extends PanelMenu.Button {
this._menuItems = {};
this._indicatorLabels = {};
this._container = new InputSourceIndicatorContainer({ style_class: 'single-indicator' });
this._container = new InputSourceIndicatorContainer({ style_class: 'system-status-icon' });
this.add_child(this._container);
this._propSeparator = new PopupMenu.PopupSeparatorMenuItem();