[gnome-shell/uajain/adapt-user-avatar-part2: 3/20] 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: 3/20] loginDialog: Apply CSS to sessionMenuButton according to mockups
- Date: Tue, 11 Feb 2020 16:05:09 +0000 (UTC)
commit dccb9aeaa10bf4acffb3dc08ef7b06de5e3e7e54
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 | 13 ++-----------
js/gdm/loginDialog.js | 4 +++-
2 files changed, 5 insertions(+), 12 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..53311f4f67 100644
--- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
@@ -69,7 +69,8 @@
}
}
- .cancel-button {
+ .cancel-button,
+ .login-dialog-session-list-button {
padding: 0;
border-radius: 16px;
width: 32px;
@@ -162,13 +163,3 @@
@include fontsize($base_font_size + 1);
padding-top: 1em;
}
-
-.login-dialog-session-list-button StIcon {
- icon-size: 1.25em;
-}
-
-.login-dialog-session-list-button {
- color: darken($osd_fg_color,30%);
- &:hover,&:focus { color: $osd_fg_color; }
- &:active { color: darken($osd_fg_color, 50%); }
-}
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 519f97f790..68ca8d71e5 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -312,12 +312,14 @@ var SessionMenuButton = GObject.registerClass({
_init() {
let gearIcon = new St.Icon({ icon_name: 'emblem-system-symbolic' });
let button = new St.Button({
- style_class: 'login-dialog-session-list-button',
+ style_class: 'modal-dialog-button button login-dialog-session-list-button',
reactive: true,
track_hover: true,
can_focus: true,
accessible_name: _("Choose Session"),
accessible_role: Atk.Role.MENU,
+ x_align: Clutter.ActorAlign.CENTER,
+ y_align: Clutter.ActorAlign.CENTER,
child: gearIcon,
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]