Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html

Issue 2241563003: MD Settings / User Manager: fix blurry avatar icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html
diff --git a/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html b/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html
index caa6ed19c56d568fbfd8844bdfa368522fb9082e..cbe016fd8ed8960a587142a0ae60517829c0e7ec 100644
--- a/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html
+++ b/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.html
@@ -1,3 +1,4 @@
+<link rel="import" href="chrome://resources/html/icon.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-selector.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
@@ -18,19 +19,19 @@
margin: calc(var(--avatar-spacing) / -2);
}
- .avatar {
+ #selector .avatar {
--paper-button: {
background: var(--paper-grey-300);
};
--paper-button-flat-keyboard-focus: {
background: var(--paper-grey-400);
};
- align-items: center;
+ background-repeat: no-repeat;
+ background-position: center;
border-radius: 2px;
border: 1px solid rgba(0, 0, 0, .12);
display: flex;
height: 48px;
- justify-content: center;
margin: calc(var(--avatar-spacing) / 2);
min-width: 0;
padding: 0;
@@ -48,8 +49,9 @@
<iron-selector id="selector" selected="{{selectedAvatarUrl}}"
attr-for-selected="data-avatar-url">
<template is="dom-repeat" items="[[avatars]]">
- <paper-button class="avatar" data-avatar-url$="[[item.url]]">
- <img src="[[item.url]]" alt="[[item.label]]">
+ <paper-button class="avatar" data-avatar-url$="[[item.url]]"
+ title="[[item.label]]"
+ style$="background-image: [[getIconImageset_(item.url)]]">
</paper-button>
</template>
</iron-selector>

Powered by Google App Engine
This is Rietveld 408576698