diff --git a/content/muttator.js b/content/muttator.js index 2664885d..f37759bd 100644 --- a/content/muttator.js +++ b/content/muttator.js @@ -42,6 +42,7 @@ const config = { //{{{ get mainWidget() this.isComposeWindow ? document.getElementById("content-frame") : GetThreadTree(), get mainWindowID() this.isComposeWindow ? "msgcomposeWindow" : "messengerWindow", get visualbellWindow() document.getElementById(this.mainWindowID), + styleableChrome: "chrome://messenger/content/messenger.xul,chrome://messenger/content/messengercompose/messengercompose.xul", autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"], ["PageLoadPre", "Triggered after a page load is initiated"], diff --git a/content/style.js b/content/style.js index 620ebbb8..098851ac 100644 --- a/content/style.js +++ b/content/style.js @@ -81,7 +81,7 @@ function Highlights(name, store, serial) var styles = storage.styles; const Highlight = Struct("class", "selector", "filter", "default", "value"); - Highlight.defaultValue("filter", function () "chrome://liberator/content/buffer.xhtml,chrome://browser/content/browser.xul"); + Highlight.defaultValue("filter", function () "chrome://liberator/content/buffer.xhtml" + "," + config.styleableChrome); Highlight.defaultValue("selector", function () ".hl-" + this.class); Highlight.defaultValue("value", function () this.default); Highlight.prototype.toString = function () [k + ": " + util.escapeString(v || "undefined") for ([k, v] in this)].join(", "); @@ -261,6 +261,7 @@ function Styles(name, store, serial) this.registerSheet = function (uri, doCheckSyntax, reload) { + //dump (uri + "\n\n"); if (doCheckSyntax) checkSyntax(uri); if (reload) @@ -357,11 +358,13 @@ let (array = util.Array) }; } + const styles = storage.newObject("styles", Styles, false); -const highlight = storage.newObject("highlight", Highlights, false); liberator.registerObserver("load_commands", function () { + const highlight = storage.newObject("highlight", Highlights, false); + // TODO: :colo default needs :hi clear commands.add(["colo[rscheme]"], "Load a color scheme", diff --git a/content/vimperator.js b/content/vimperator.js index 4073c142..bdd92a7c 100644 --- a/content/vimperator.js +++ b/content/vimperator.js @@ -37,6 +37,7 @@ const config = { //{{{ guioptions: { m: ["toolbar-menubar"], T: ["nav-bar"], b: ["PersonalToolbar"] }, get visualbellWindow() getBrowser().mPanelContainer, + styleableChrome: "chrome://browser/content/browser.xul", autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"], ["ColorScheme", "Triggered after a color scheme has been loaded"], diff --git a/content/vimperator.xul b/content/vimperator.xul index 7cf97ca2..5d11fd6c 100644 --- a/content/vimperator.xul +++ b/content/vimperator.xul @@ -28,7 +28,7 @@ the provisions above, a recipient may use your version of this file under the terms of any one of the MPL, the GPL or the LGPL. }}} ***** END LICENSE BLOCK ***** --> - +