[gnome-shell/uajain/adapt-user-avatar: 4/6] authPrompt: Iconize the cancel button
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar: 4/6] authPrompt: Iconize the cancel button
- Date: Fri, 6 Dec 2019 13:05:27 +0000 (UTC)
commit f35c757e9642b5c65b0ff36aca69dd6cefc1903c
Author: Umang Jain <mailumangjain gmail com>
Date: Fri Dec 6 14:18:00 2019 +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.
data/theme/gnome-shell-sass/_common.scss | 10 ++++++++++
js/gdm/authPrompt.js | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss
index 4ccff8c6a5..aff498e5b4 100644
--- a/data/theme/gnome-shell-sass/_common.scss
+++ b/data/theme/gnome-shell-sass/_common.scss
@@ -1965,6 +1965,16 @@ StScrollBar {
}
}
}
+ .cancel-button {
+ padding: 0;
+ border-radius: 16px;
+ width: 32px;
+ height: 32px;
+ border-color: transparentize($bg_color,0.7);
+ background-color: transparentize($bg_color,0.7);
+
+ StIcon { icon-size: 16px; }
+ }
}
.login-dialog-logo-bin { padding: 24px 0px; }
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 0b5cbf8725..10e5033480 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -132,14 +132,14 @@ var AuthPrompt = GObject.registerClass({
this.add_child(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_expand: true,
x_align: Clutter.ActorAlign.START,
y_align: Clutter.ActorAlign.END,
+ child: new St.Icon({ icon_name: 'go-previous-symbolic' }),
});
this.cancelButton.connect('clicked', () => this.cancel());
mainBox.add_child(this.cancelButton);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]