mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 11:34:12 +01:00
fixed styling of muttator's chrome
This commit is contained in:
@@ -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"],
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"],
|
||||
|
||||
@@ -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 ***** -->
|
||||
|
||||
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
|
||||
<!-- <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> -->
|
||||
|
||||
<overlay id="vimperator"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
|
||||
Reference in New Issue
Block a user