[gnome-shell/wip/fmuellner/remove-user-icon-frame] userWidget: Remove frame around avatar
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/remove-user-icon-frame] userWidget: Remove frame around avatar
- Date: Tue, 5 Feb 2019 16:35:14 +0000 (UTC)
commit 54eb36c2a861e16d530e5cc4f1fa8c5e20a45a81
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Feb 5 17:28:41 2019 +0100
userWidget: Remove frame around avatar
There's a push for round user images, for which the existing square
frame is a bad match.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/811
data/theme/gnome-shell-sass/_common.scss | 5 +----
js/ui/userWidget.js | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss
index 1c4f85f89..b0eb23f21 100644
--- a/data/theme/gnome-shell-sass/_common.scss
+++ b/data/theme/gnome-shell-sass/_common.scss
@@ -1730,13 +1730,10 @@ StScrollBar {
/* Auth Dialogs & Screen Shield */
-.framed-user-icon {
+.user-icon {
background-size: contain;
- border: 2px solid $osd_fg_color;
color: $osd_fg_color;
- border-radius: 3px;
&:hover {
- border-color: lighten($osd_fg_color,30%);
color: lighten($osd_fg_color,30%);
}
}
diff --git a/js/ui/userWidget.js b/js/ui/userWidget.js
index a702ad842..09d41370c 100644
--- a/js/ui/userWidget.js
+++ b/js/ui/userWidget.js
@@ -23,7 +23,7 @@ var Avatar = class {
this._user = user;
params = Params.parse(params, { reactive: false,
iconSize: AVATAR_ICON_SIZE,
- styleClass: 'framed-user-icon' });
+ styleClass: 'user-icon' });
this._iconSize = params.iconSize;
let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]