authPrompt: Iconize the cancel button
Replace the "Cancel" label in the cancel button by an arrow icon, and adjust the theme to make it circular.
This commit is contained in:
parent
6cd0c3f965
commit
5b6deff977
@ -1986,6 +1986,15 @@ StScrollBar {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.cancel-button {
|
||||
padding: 0;
|
||||
border-radius: 16px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
|
||||
StIcon { icon-size: 16px; }
|
||||
}
|
||||
}
|
||||
|
||||
.login-dialog-logo-bin { padding: 24px 0px; }
|
||||
|
@ -112,11 +112,13 @@ var AuthPrompt = class {
|
||||
});
|
||||
this.actor.add_child(mainBox);
|
||||
|
||||
this.cancelButton = new St.Button({ style_class: 'modal-dialog-button button',
|
||||
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
|
||||
reactive: true,
|
||||
can_focus: true,
|
||||
label: _("Cancel") });
|
||||
this.cancelButton = new St.Button({
|
||||
style_class: 'modal-dialog-button button cancel-button',
|
||||
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
|
||||
reactive: true,
|
||||
can_focus: true,
|
||||
child: new St.Icon({ icon_name: 'go-previous-symbolic' }),
|
||||
});
|
||||
this.cancelButton.connect('clicked', () => this.cancel());
|
||||
mainBox.add_child(this.cancelButton);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user