[gnome-shell/uajain/adapt-user-avatar-part2: 19/39] authPrompt: Iconize the cancel button
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar-part2: 19/39] authPrompt: Iconize the cancel button
- Date: Wed, 12 Feb 2020 17:50:42 +0000 (UTC)
commit 5ee0d70289236c739f4c516fada37b2121c814cd
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Jan 14 20:45:48 2020 +0530
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.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
data/theme/gnome-shell-sass/widgets/_login-dialog.scss | 11 +++++++++++
js/gdm/authPrompt.js | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
index 44556684a1..fce6d3a3fd 100644
--- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
@@ -68,6 +68,17 @@
}
}
}
+
+ .cancel-button {
+ padding: 0;
+ border-radius: 99px;
+ width: 2em;
+ height: 2em;
+ border-color: transparentize($bg_color,0.7);
+ background-color: transparentize($bg_color,0.7);
+
+ StIcon { icon-size: 1em; }
+ }
}
.login-dialog-logo-bin { padding: 24px 0px; }
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 8d52eddacf..1c35256ace 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -133,13 +133,13 @@ var AuthPrompt = GObject.registerClass({
this.add_child(this._mainBox);
this.cancelButton = new St.Button({
- style_class: 'modal-dialog-button button',
+ style_class: 'modal-dialog-button button cancel-button',
button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
reactive: true,
can_focus: true,
- label: _("Cancel"),
x_align: Clutter.ActorAlign.START,
y_align: Clutter.ActorAlign.CENTER,
+ child: new St.Icon({ icon_name: 'go-previous-symbolic' }),
});
this.cancelButton.connect('clicked', () => this.cancel());
this._mainBox.add_child(this.cancelButton);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]