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

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

Issue 1169323004: DevTools: do not respect Chrome theme in DevTools, align toolbar items. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: overflow for tab header fixed. Created 5 years, 6 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
« no previous file with comments | « Source/devtools/front_end/timeline/timelinePanel.css ('k') | Source/devtools/front_end/ui/filter.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/UIUtils.js
diff --git a/Source/devtools/front_end/ui/UIUtils.js b/Source/devtools/front_end/ui/UIUtils.js
index dd9fec754fcf3190633175a220792a9d92e3595c..89ad5f6ad6a248e0a83ba14d99379ef1ee3e9d3d 100644
--- a/Source/devtools/front_end/ui/UIUtils.js
+++ b/Source/devtools/front_end/ui/UIUtils.js
@@ -762,46 +762,6 @@ WebInspector.restoreFocusFromElement = function(element)
}
/**
- * @param {!Document} document
- * @param {string} backgroundColor
- * @param {string} color
- */
-WebInspector.setToolbarColors = function(document, backgroundColor, color)
-{
- if (!WebInspector._themeStyleElement) {
- WebInspector._themeStyleElement = createElement("style");
- document.head.appendChild(WebInspector._themeStyleElement);
- }
- var colorWithAlpha = WebInspector.Color.parse(color).setAlpha(0.9).asString(WebInspector.Color.Format.RGBA);
- var prefix = WebInspector.isMac() ? "body:not(.undocked)" : "body";
- WebInspector._themeStyleElement.textContent =
- String.sprintf(
- "%s .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header {" +
- " background-image: none !important;" +
- " background-color: %s !important;" +
- " color: %s !important;" +
- "}", prefix, backgroundColor, colorWithAlpha) +
- String.sprintf(
- "%s .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header-tab:hover {" +
- " color: %s;" +
- "}", prefix, color) +
- String.sprintf(
- "%s .inspector-view-toolbar.toolbar::shadow .toolbar-item {" +
- " color: %s;" +
- "}", prefix, colorWithAlpha) +
- String.sprintf(
- "%s .inspector-view-toolbar.toolbar::shadow .toolbar-button-theme {" +
- " background-color: %s;" +
- "}", prefix, colorWithAlpha);
-}
-
-WebInspector.resetToolbarColors = function()
-{
- if (WebInspector._themeStyleElement)
- WebInspector._themeStyleElement.textContent = "";
-}
-
-/**
* @param {!Element} element
* @param {number} offset
* @param {number} length
« no previous file with comments | « Source/devtools/front_end/timeline/timelinePanel.css ('k') | Source/devtools/front_end/ui/filter.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698