[gnome-shell/uajain/adapt-user-avatar-part2: 4/7] loginDialog: Apply CSS to sessionMenuButton according to mockups



commit 9120b45ce32df97ea570a3c79ff90dadad503a0f
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 9b6c00902b..3d23be9fea 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]