diff --git a/muttator/content/muttator.png b/muttator/content/logo.png similarity index 100% rename from muttator/content/muttator.png rename to muttator/content/logo.png diff --git a/vimperator/components/about-handler.js b/vimperator/components/about-handler.js new file mode 100644 index 00000000..88553282 --- /dev/null +++ b/vimperator/components/about-handler.js @@ -0,0 +1,33 @@ +Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); + +const Cc = Components.classes; +const Ci = Components.interfaces; + +function AboutHandler() {} + +AboutHandler.prototype = { + + classDescription: "About Vimperator Page", + + classID: Components.ID("81495d80-89ee-4c36-a88d-ea7c4e5ac63f"), + + contractID: "@mozilla.org/network/protocol/about;1?what=vimperator", + + QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]), + + newChannel: function (uri) + { + let channel = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService) + .newChannel("chrome://vimperator/content/about.html", null, null); + + channel.originalURI = uri; + + return channel; + }, + + getURIFlags: function (uri) Ci.nsIAboutModule.ALLOW_SCRIPT, +}; + +function NSGetModule(compMgr, fileSpec) XPCOMUtils.generateModule([AboutHandler]); + +// vim: set fdm=marker sw=4 ts=4 et: diff --git a/vimperator/content/about.html b/vimperator/content/about.html new file mode 100644 index 00000000..39b71973 --- /dev/null +++ b/vimperator/content/about.html @@ -0,0 +1,34 @@ + + + + + + + About:Vimperator + + + + +
+
+
+
+Vimperator +version 2.1 +by Martin Stubenschrott et al. +Vimperator is open source and freely distributable + +Sponsor Vimperator development!
type :help sponsor<Enter> for information + +type :q<Enter> to exit +type :help<Enter> or <F1> for on-line help +type :help version-2.1<Enter> for version info +
+
+
+
+ + + + diff --git a/vimperator/content/about_background.jpg b/vimperator/content/about_background.jpg new file mode 100644 index 00000000..0c9b8b10 Binary files /dev/null and b/vimperator/content/about_background.jpg differ diff --git a/vimperator/content/config.js b/vimperator/content/config.js index d9236bb2..804aa732 100644 --- a/vimperator/content/config.js +++ b/vimperator/content/config.js @@ -180,7 +180,7 @@ const config = { //{{{ /////////////////////////////////////////////////////////////////////////////{{{ let img = Image(); - img.src = "chrome://vimperator/content/vimperator.png"; + img.src = "chrome://vimperator/content/logo.png"; img.onload = function () { styles.addSheet(true, "logo", "chrome://liberator/locale/*", ".vimperator-logo {" + <> diff --git a/vimperator/content/vimperator.png b/vimperator/content/logo.png similarity index 100% rename from vimperator/content/vimperator.png rename to vimperator/content/logo.png diff --git a/vimperator/skin/about.css b/vimperator/skin/about.css new file mode 100644 index 00000000..441ad8ca --- /dev/null +++ b/vimperator/skin/about.css @@ -0,0 +1,37 @@ +/* Based on vimperator.org home page layout. */ + +#main-container { + width: 775px; + margin: 55px auto; +} + +#img-container { + display: table-cell; + vertical-align: middle; + width: 775px; + height: 440px; + border: 5px solid black; + background-repeat: no-repeat; + background-image: url(chrome://vimperator/content/about_background.jpg); + background-color: green; + border-spacing: 0px 10px; + -moz-border-radius: 10px; +} + +#text-container { + float: right; + border: solid black; + white-space: pre-wrap; + font-family: monospace; + font-size: 13px; + font-weight: bold; + width: 500px; + height: 275px; + color: black; + background-color: rgb(176, 196, 222); + opacity: 0.75; +} + +.key { color: blue; } + +/* vim: set fdm=marker sw=4 ts=4 et: */ diff --git a/xulmus/content/config.js b/xulmus/content/config.js index e727f68b..9f0e8201 100644 --- a/xulmus/content/config.js +++ b/xulmus/content/config.js @@ -279,7 +279,7 @@ const config = { //{{{ /////////////////////////////////////////////////////////////////////////////{{{ let img = Image(); - img.src = "chrome://xulmus/content/xulmus.png"; + img.src = "chrome://xulmus/content/logo.png"; img.onload = function () { styles.addSheet(true, "logo", "chrome://liberator/locale/*", ".xulmus-logo {" + <> diff --git a/xulmus/content/xulmus.png b/xulmus/content/logo.png similarity index 100% rename from xulmus/content/xulmus.png rename to xulmus/content/logo.png