Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 1201718 - Support invertIconForLightTheme option for add-on SDK d…
Browse files Browse the repository at this point in the history
…evtools. r=jsantell
  • Loading branch information
nt1m authored and Mossop committed Sep 4, 2015
1 parent c41767c commit 5ac44b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/dev/panel.js
Expand Up @@ -160,6 +160,10 @@ validate.define(Panel, contract({
is: ["string"],
ok: x => isLocalURL(x),
msg: "The `options.url` must be a valid local URI."
},
invertIconForLightTheme: {
is: ["boolean", "undefined"],
msg: "The `options.invertIconForLightTheme` must be a boolean."
}
}));

Expand Down
4 changes: 3 additions & 1 deletion lib/dev/toolbox.js
Expand Up @@ -42,7 +42,8 @@ const Tool = Class({
this.themes = themes;

each(([key, Panel]) => {
const { url, label, tooltip, icon } = validate(Panel.prototype);
const { url, label, tooltip, icon,
invertIconForLightTheme } = validate(Panel.prototype);
const { id } = Panel.prototype;

gDevTools.registerTool({
Expand All @@ -51,6 +52,7 @@ const Tool = Class({
label: label,
tooltip: tooltip,
icon: icon,
invertIconForLightTheme: invertIconForLightTheme,
isTargetSupported: target => target.isLocalTab,
build: (window, toolbox) => {
const panel = new Panel();
Expand Down

0 comments on commit 5ac44b7

Please sign in to comment.