| Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| index 1a9a6fb7781f0f282488d051176311b9bc50f182..92d133a10b7373fe7c1a1ba912c393af396c5014 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
|
| @@ -107,6 +107,7 @@ WebInspector.Main.prototype = {
|
| Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI themes");
|
| Runtime.experiments.register("blackboxJSFramesOnTimeline", "Blackbox JavaScript frames on Timeline", true);
|
| Runtime.experiments.register("colorContrastRatio", "Contrast ratio line in color picker", true);
|
| + Runtime.experiments.register("darkTheme", "Dark theme", true);
|
| Runtime.experiments.register("deviceMode", "Device mode", true);
|
| Runtime.experiments.register("emptySourceMapAutoStepping", "Empty sourcemap auto-stepping");
|
| Runtime.experiments.register("fileSystemInspection", "FileSystem inspection");
|
| @@ -167,6 +168,9 @@ WebInspector.Main.prototype = {
|
|
|
| WebInspector.initializeUIUtils(window);
|
| WebInspector.installComponentRootStyles(/** @type {!Element} */ (document.body));
|
| + if (Runtime.experiments.isEnabled("darkTheme")) {
|
| + document.body.classList.add("dark-theme");
|
| + }
|
|
|
| this._addMainEventListeners(document);
|
|
|
|
|