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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2776883003: DevTools: normalize medium icons (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index 9be2aeb7582cb59d2d6dd3bb9fa154d8bf0ee01b..ad82daf5eb7a579c37c2189075c0ae230aa3ebc9 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -1506,8 +1506,8 @@ UI.appendStyle = function(node, cssFile) {
var root = UI.createShadowRootWithCoreStyles(this, 'ui/closeButton.css');
this._buttonElement = root.createChild('div', 'close-button');
var regularIcon = UI.Icon.create('smallicon-cross', 'default-icon');
- this._hoverIcon = UI.Icon.create('smallicon-red-cross-hover', 'hover-icon');
- this._activeIcon = UI.Icon.create('smallicon-red-cross-active', 'active-icon');
+ this._hoverIcon = UI.Icon.create('mediumicon-red-cross-hover', 'hover-icon');
+ this._activeIcon = UI.Icon.create('mediumicon-red-cross-active', 'active-icon');
this._buttonElement.appendChild(regularIcon);
this._buttonElement.appendChild(this._hoverIcon);
this._buttonElement.appendChild(this._activeIcon);
@@ -1519,11 +1519,11 @@ UI.appendStyle = function(node, cssFile) {
*/
set gray(gray) {
if (gray) {
- this._hoverIcon.setIconType('smallicon-gray-cross-hover');
- this._activeIcon.setIconType('smallicon-gray-cross-active');
+ this._hoverIcon.setIconType('mediumicon-gray-cross-hover');
+ this._activeIcon.setIconType('mediumicon-gray-cross-active');
} else {
- this._hoverIcon.setIconType('smallicon-red-cross-hover');
- this._activeIcon.setIconType('smallicon-red-cross-active');
+ this._hoverIcon.setIconType('mediumicon-red-cross-hover');
+ this._activeIcon.setIconType('mediumicon-red-cross-active');
}
},

Powered by Google App Engine
This is Rietveld 408576698