1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 05:02:26 +01:00

Fix vimperator's logo in help pages.

This commit is contained in:
Kris Maglione
2008-12-02 19:24:37 -05:00
parent 15997a21cd
commit b0a91b1c73
3 changed files with 25 additions and 2 deletions

View File

@@ -140,6 +140,8 @@ const config = { //{{{
}
// load Vimperator specific modules
// FIXME: Why aren't these listed in config.scripts?
// FIXME: Why isn't this automatic?
liberator.loadModule("search", Search);
liberator.loadModule("bookmarks", Bookmarks);
liberator.loadModule("history", History);
@@ -148,6 +150,24 @@ const config = { //{{{
liberator.loadModule("quickmarks", QuickMarks);
liberator.loadModule("hints", Hints);
////////////////////////////////////////////////////////////////////////////////
////////////////////// STYLES //////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
let img = Image();
img.src = "chrome://vimperator/content/vimperator.png";
img.onload = function () {
styles.addSheet("logo", "chrome://liberator/locale/*",
".vimperator-logo {" + <>
display: inline-block;
width: {img.width};
height: {img.height};
</> + "}" +
".vimperator-logo::after { content: url(chrome://vimperator/content/vimperator.png) }",
true);
delete img;
}
////////////////////////////////////////////////////////////////////////////////
////////////////////// MAPPINGS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{