[gnome-shell/uajain/adapt-user-avatar-part2: 71/74] loginDialog: Apply CSS to sessionMenuButton according to mockups
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/uajain/adapt-user-avatar-part2: 71/74] loginDialog: Apply CSS to sessionMenuButton according to mockups
- Date: Mon, 3 Feb 2020 18:49:02 +0000 (UTC)
commit 15327301fa2ba537eb24ee6b4ab84936cef202e1
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Jan 28 23:22:30 2020 +0530
loginDialog: Apply CSS to sessionMenuButton according to mockups
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922
data/theme/gnome-shell-sass/widgets/_login-dialog.scss | 7 ++++++-
js/gdm/loginDialog.js | 3 +--
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
index effb8d6069..1f472dab60 100644
--- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
@@ -164,7 +164,12 @@
}
.login-dialog-session-list-button StIcon {
- icon-size: 1.25em;
+ border-radius: 32px;
+ width: 32px;
+ height: 32px;
+ border-color: transparentize($bg_color,0.5);
+ background-color: transparentize($bg_color,0.5);
+ icon-size: 16px;
}
.login-dialog-session-list-button {
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 519f97f790..75d2361e27 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -310,7 +310,6 @@ var SessionMenuButton = GObject.registerClass({
Signals: { 'session-activated': { param_types: [GObject.TYPE_STRING] } },
}, class SessionMenuButton extends St.Bin {
_init() {
- let gearIcon = new St.Icon({ icon_name: 'emblem-system-symbolic' });
let button = new St.Button({
style_class: 'login-dialog-session-list-button',
reactive: true,
@@ -318,7 +317,7 @@ var SessionMenuButton = GObject.registerClass({
can_focus: true,
accessible_name: _("Choose Session"),
accessible_role: Atk.Role.MENU,
- child: gearIcon,
+ child: new St.Icon({ icon_name: 'emblem-system-symbolic' }),
});
super._init({ child: button });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]