mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
84bf318644
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
23 lines
705 B
JavaScript
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();
|
|
}
|
|
}];
|