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



commit 6fd51284fa88abb7ab36617d5565d32124a6bd12
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]