UNPKG

chrome-devtools-frontend

Version:
19 lines (15 loc) 748 B
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as ThemeSupport from '../../theme_support/theme_support.js'; import {appendStyle} from './append-style.js'; /** * @param {!Element|!ShadowRoot} root */ export function injectCoreStyles(root) { appendStyle(root, 'ui/inspectorCommon.css', {enableLegacyPatching: true}); appendStyle(root, 'ui/inspectorScrollbars.css', {enableLegacyPatching: false}); appendStyle(root, 'ui/textButton.css', {enableLegacyPatching: true}); ThemeSupport.ThemeSupport.instance().injectHighlightStyleSheets(root); ThemeSupport.ThemeSupport.instance().injectCustomStyleSheets(root); }