gecko-dev/devtools/client/scratchpad/scratchpad-commands.js
Julian Descottes 84bf318644 Bug 1399886 - remove unnecessary invertable CSS classes on devtools icons;r=gl
Using fill instead of filter we don't need to define each icon as
invertable or not. If the icon is a SVG and supports fill="context-fill"
then it will be inverted/highlighted etc... as expected.

If not then it won't be impacted by DevTools themes.

MozReview-Commit-ID: CLFprKMuCt9

--HG--
extra : rebase_source : 391f3567c2bdf319dcfd0a3b0c87f0479f85eabd
2017-10-04 21:13:48 +02:00

23 lines
705 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const l10n = require("gcli/l10n");
const {Cu} = require("chrome");
exports.items = [{
item: "command",
runAt: "client",
name: "scratchpad",
buttonId: "command-button-scratchpad",
buttonClass: "command-button",
tooltipText: l10n.lookup("scratchpadOpenTooltip"),
hidden: true,
exec: function (args, context) {
const {ScratchpadManager} = Cu.import("resource://devtools/client/scratchpad/scratchpad-manager.jsm", {});
ScratchpadManager.openScratchpad();
}
}];