зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 76efdf921d79 (bug 1088305) for ES Failures
This commit is contained in:
Родитель
f0c85903aa
Коммит
7a883ab1b4
|
@ -13,7 +13,6 @@ const DEFAULT_PREVIEW_TEXT = "Abc";
|
|||
const PREVIEW_UPDATE_DELAY = 150;
|
||||
|
||||
const {Task} = require("devtools/shared/task");
|
||||
const {getColor} = require("devtools/client/shared/theme");
|
||||
|
||||
function FontInspector(inspector, window) {
|
||||
this.inspector = inspector;
|
||||
|
@ -162,10 +161,14 @@ FontInspector.prototype = {
|
|||
|
||||
this._lastUpdateShowedAllFonts = showAllFonts;
|
||||
|
||||
// Assume light theme colors as the default (see also bug 1118179).
|
||||
let fillStyle = (Services.prefs.getCharPref("devtools.theme") == "dark") ?
|
||||
"white" : "black";
|
||||
|
||||
let options = {
|
||||
includePreviews: true,
|
||||
previewText: this.getPreviewText(),
|
||||
previewFillStyle: getColor("body-color")
|
||||
previewFillStyle: fillStyle
|
||||
};
|
||||
|
||||
let fonts = [];
|
||||
|
|
|
@ -16,8 +16,7 @@ const variableFileContents = require("raw!devtools/client/themes/variables.css")
|
|||
|
||||
const THEME_SELECTOR_STRINGS = {
|
||||
light: ":root.theme-light {",
|
||||
dark: ":root.theme-dark {",
|
||||
firebug: ":root.theme-firebug {"
|
||||
dark: ":root.theme-dark {"
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче