OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
5 * Copyright (C) 2009 Joseph Pecoraro | 5 * Copyright (C) 2009 Joseph Pecoraro |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * | 10 * |
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 | 1633 |
1634 /** | 1634 /** |
1635 * @param {string} selectorText | 1635 * @param {string} selectorText |
1636 * @param {!CSSStyleDeclaration} style | 1636 * @param {!CSSStyleDeclaration} style |
1637 * @param {string} name | 1637 * @param {string} name |
1638 * @param {!Array<string>} output | 1638 * @param {!Array<string>} output |
1639 * | 1639 * |
1640 * Theming API is primarily targeted at making dark theme look good. | 1640 * Theming API is primarily targeted at making dark theme look good. |
1641 * - If rule has ".-theme-preserve" in selector, it won't be affected. | 1641 * - If rule has ".-theme-preserve" in selector, it won't be affected. |
1642 * - If rule has ".selection" or "selected" or "-theme-selection-color" in s
elector, its hue is rotated 180deg in dark themes. | 1642 * - If rule has ".selection" or "selected" or "-theme-selection-color" in s
elector, its hue is rotated 180deg in dark themes. |
1643 * - If rule has "highlight" its lightness is dimmmed 50%. | |
1644 * - One can create specializations for dark themes via body.-theme-with-dar
k-background selector in host context. | 1643 * - One can create specializations for dark themes via body.-theme-with-dar
k-background selector in host context. |
1645 */ | 1644 */ |
1646 _patchProperty: function(selectorText, style, name, output) | 1645 _patchProperty: function(selectorText, style, name, output) |
1647 { | 1646 { |
1648 if (!this._themableProperties.has(name)) | 1647 if (!this._themableProperties.has(name)) |
1649 return; | 1648 return; |
1650 | 1649 |
1651 var value = style.getPropertyValue(name); | 1650 var value = style.getPropertyValue(name); |
1652 if (!value || value === "none" || value === "inherit" || value === "init
ial" || value === "transparent") | 1651 if (!value || value === "none" || value === "inherit" || value === "init
ial" || value === "transparent") |
1653 return; | 1652 return; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1751 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], | 1750 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], |
1752 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High
est")] | 1751 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High
est")] |
1753 ]); | 1752 ]); |
1754 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; | 1753 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; |
1755 } | 1754 } |
1756 return labelMap.get(priority) || WebInspector.UIString("Unknown"); | 1755 return labelMap.get(priority) || WebInspector.UIString("Unknown"); |
1757 } | 1756 } |
1758 | 1757 |
1759 /** @type {!WebInspector.ThemeSupport} */ | 1758 /** @type {!WebInspector.ThemeSupport} */ |
1760 WebInspector.themeSupport; | 1759 WebInspector.themeSupport; |
OLD | NEW |