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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js

Issue 2482073002: DevTools: introduce beautiful checkmarks in navigator and editor tabs (Closed)
Patch Set: Created 4 years, 1 month 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/sources/NavigatorView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
index 8f8dd749a6c950ec754ff27d981a765392a29a8c..e18bb8e976c7efa3dd1cfac2f9de6d222bcfd5dc 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
@@ -1273,15 +1273,15 @@ WebInspector.NavigatorUISourceCodeTreeNode = class extends WebInspector.Navigato
if (binding && Runtime.experiments.isEnabled('persistence2')) {
var titleElement = createElement('span');
titleElement.textContent = titleText;
- var status = titleElement.createChild('span');
- status.classList.add('mapped-file-bubble');
- status.textContent = '\u25C9';
+ var icon = WebInspector.Icon.create('smallicon-checkmark-mask');
+ titleElement.appendChild(icon);
+ icon.classList.add('mapped-file-checkmark');
if (this._uiSourceCode === binding.network)
- status.title = WebInspector.UIString('Persisted to file system: %s', binding.fileSystem.url().trimMiddle(150));
+ icon.title = WebInspector.UIString('Persisted to file system: %s', binding.fileSystem.url().trimMiddle(150));
else if (binding.network.contentType().isFromSourceMap())
- status.title = WebInspector.UIString('Linked to source map: %s', binding.network.url().trimMiddle(150));
+ icon.title = WebInspector.UIString('Linked to source map: %s', binding.network.url().trimMiddle(150));
else
- status.title = WebInspector.UIString('Linked to %s', binding.network.url().trimMiddle(150));
+ icon.title = WebInspector.UIString('Linked to %s', binding.network.url().trimMiddle(150));
this._treeElement.title = titleElement;
} else {
this._treeElement.title = titleText;

Powered by Google App Engine
This is Rietveld 408576698