[gnome-shell/wip/jimmac/default-avatar-tweak] theme: default avatar should remain being a pill
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/jimmac/default-avatar-tweak] theme: default avatar should remain being a pill
- Date: Thu, 13 Feb 2020 14:06:58 +0000 (UTC)
commit 2d59809aa24f74c8be0820d5d1bd7b5909ddc94d
Author: Jakub Steiner <jimmac gmail com>
Date: Thu Feb 13 15:03:30 2020 +0100
theme: default avatar should remain being a pill
- force size due to the necessary whitespace/padding being added to the dimensions
- use osd FG color for background as it's $variant independednt
data/theme/gnome-shell-sass/widgets/_login-dialog.scss | 7 +++++++
js/ui/userWidget.js | 1 +
2 files changed, 8 insertions(+)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
index 284a53b06c..d0d68ba877 100644
--- a/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
+++ b/data/theme/gnome-shell-sass/widgets/_login-dialog.scss
@@ -130,6 +130,13 @@
&:focus .login-dialog-timed-login-indicator { background-color: $selected_fg_color; }
}
+.default-avatar {
+ background-color: transparentize($osd_fg_color,0.95);
+ padding: 18px 20px 22px 20px;
+ width: 88px; height: 88px;
+ border-radius: 64px;
+}
+
.user-widget-label {
color: $osd_fg_color;
}
diff --git a/js/ui/userWidget.js b/js/ui/userWidget.js
index e5f7883381..49f4501917 100644
--- a/js/ui/userWidget.js
+++ b/js/ui/userWidget.js
@@ -108,6 +108,7 @@ class Avatar extends St.Bin {
this.child = new St.Icon({
icon_name: 'avatar-default-symbolic',
icon_size: iconSize,
+ style_class: 'default-avatar',
});
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]