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:
@@ -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 ////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
Reference in New Issue
Block a user