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; }
|
.login-dialog-logo-bin { padding: 24px 0px; }
|
||||||
|
@ -112,11 +112,13 @@ var AuthPrompt = class {
|
|||||||
});
|
});
|
||||||
this.actor.add_child(mainBox);
|
this.actor.add_child(mainBox);
|
||||||
|
|
||||||
this.cancelButton = new St.Button({ style_class: 'modal-dialog-button button',
|
this.cancelButton = new St.Button({
|
||||||
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
|
style_class: 'modal-dialog-button button cancel-button',
|
||||||
reactive: true,
|
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
|
||||||
can_focus: true,
|
reactive: true,
|
||||||
label: _("Cancel") });
|
can_focus: true,
|
||||||
|
child: new St.Icon({ icon_name: 'go-previous-symbolic' }),
|
||||||
|
});
|
||||||
this.cancelButton.connect('clicked', () => this.cancel());
|
this.cancelButton.connect('clicked', () => this.cancel());
|
||||||
mainBox.add_child(this.cancelButton);
|
mainBox.add_child(this.cancelButton);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user