mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 07:45:47 +01:00
Make config.styleableChrome an array.
This commit is contained in:
@@ -142,7 +142,7 @@ function Highlights(name, store)
|
|||||||
let styles = storage.styles;
|
let styles = storage.styles;
|
||||||
|
|
||||||
const Highlight = Struct("class", "selector", "filter", "default", "value");
|
const Highlight = Struct("class", "selector", "filter", "default", "value");
|
||||||
Highlight.defaultValue("filter", function () "chrome://liberator/content/buffer.xhtml" + "," + config.styleableChrome);
|
Highlight.defaultValue("filter", function () ["chrome://liberator/content/buffer.xhtml"].concat(config.styleableChrome).join(","));
|
||||||
Highlight.defaultValue("selector", function () self.selector(this.class));
|
Highlight.defaultValue("selector", function () self.selector(this.class));
|
||||||
Highlight.defaultValue("value", function () this.default);
|
Highlight.defaultValue("value", function () this.default);
|
||||||
Highlight.prototype.toString = function () "Highlight(" + this.class + ")\n\t" + [k + ": " + util.escapeString(v || "undefined") for ([k, v] in this)].join("\n\t");
|
Highlight.prototype.toString = function () "Highlight(" + this.class + ")\n\t" + [k + ": " + util.escapeString(v || "undefined") for ([k, v] in this)].join("\n\t");
|
||||||
|
|||||||
@@ -68,7 +68,8 @@ const config = (function () //{{{
|
|||||||
// focusContent() focuses this widget
|
// focusContent() focuses this widget
|
||||||
get mainWidget() this.isComposeWindow ? document.getElementById("content-frame") : GetThreadTree(),
|
get mainWidget() this.isComposeWindow ? document.getElementById("content-frame") : GetThreadTree(),
|
||||||
get visualbellWindow() document.getElementById(this.mainWindowId),
|
get visualbellWindow() document.getElementById(this.mainWindowId),
|
||||||
styleableChrome: "chrome://messenger/content/messenger.xul,chrome://messenger/content/messengercompose/messengercompose.xul",
|
styleableChrome: ["chrome://messenger/content/messenger.xul",
|
||||||
|
"chrome://messenger/content/messengercompose/messengercompose.xul"],
|
||||||
|
|
||||||
autocommands: [["DOMLoad", "Triggered when a page's DOM content has fully loaded"],
|
autocommands: [["DOMLoad", "Triggered when a page's DOM content has fully loaded"],
|
||||||
["FolderLoad", "Triggered after switching folders in " + host],
|
["FolderLoad", "Triggered after switching folders in " + host],
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const config = { //{{{
|
|||||||
},
|
},
|
||||||
|
|
||||||
get visualbellWindow() getBrowser().mPanelContainer,
|
get visualbellWindow() getBrowser().mPanelContainer,
|
||||||
styleableChrome: "chrome://browser/content/browser.xul",
|
styleableChrome: ["chrome://browser/content/browser.xul"],
|
||||||
|
|
||||||
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
|
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
|
||||||
["ColorScheme", "Triggered after a color scheme has been loaded"],
|
["ColorScheme", "Triggered after a color scheme has been loaded"],
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const config = { //{{{
|
|||||||
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
|
// focusContent() focuses this widget gSongbirdWindowController takes care of the focus.
|
||||||
get visualbellWindow() document.getElementById(this.mainWindowId),
|
get visualbellWindow() document.getElementById(this.mainWindowId),
|
||||||
|
|
||||||
styleableChrome: "chrome://gonzo/content/xul/mainplayer.xul",
|
styleableChrome: ["chrome://gonzo/content/xul/mainplayer.xul"],
|
||||||
|
|
||||||
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
|
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
|
||||||
["ColorScheme", "Triggered after a color scheme has been loaded"],
|
["ColorScheme", "Triggered after a color scheme has been loaded"],
|
||||||
|
|||||||
Reference in New Issue
Block a user