nm-dialog: Fix icon spacing issue

- fixes #4928

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2309>
This commit is contained in:
Sam Hewitt 2022-05-27 14:49:26 -02:30 committed by Marge Bot
parent 01287f6a19
commit 68653d5e61
2 changed files with 6 additions and 2 deletions

View File

@ -15,6 +15,10 @@
.nm-dialog-header-icon { icon-size: $large_icon_size;} .nm-dialog-header-icon { icon-size: $large_icon_size;}
.nm-dialog-header-hbox { spacing: 10px; } .nm-dialog-header-hbox { spacing: 10px; }
.nm-dialog-network-selected {
margin: 0 $base_margin*2;
}
.nm-dialog-scroll-view { .nm-dialog-scroll-view {
padding:$base_padding; padding:$base_padding;
border-radius: $base_border_radius; border-radius: $base_border_radius;

View File

@ -689,7 +689,7 @@ var NMWirelessDialogItem = GObject.registerClass({
this.add_child(this._label); this.add_child(this._label);
this._selectedIcon = new St.Icon({ this._selectedIcon = new St.Icon({
style_class: 'nm-dialog-icon', style_class: 'nm-dialog-icon nm-dialog-network-selected',
icon_name: 'object-select-symbolic', icon_name: 'object-select-symbolic',
}); });
this.add(this._selectedIcon); this.add(this._selectedIcon);
@ -868,7 +868,7 @@ class NMWirelessDialog extends ModalDialog.ModalDialog {
const icon = new St.Icon({ const icon = new St.Icon({
style_class: 'nm-dialog-header-icon', style_class: 'nm-dialog-header-icon',
icon_name: 'network-wireless-signal-excellent-symbolic', icon_name: 'network-wireless-symbolic',
}); });
let titleBox = new St.BoxLayout({ vertical: true }); let titleBox = new St.BoxLayout({ vertical: true });