mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 16:45:47 +01:00
changed colors
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<pre>
|
<pre>
|
||||||
2007-05-02:
|
2007-05-02:
|
||||||
* version ???
|
* version ???
|
||||||
|
* changed secure sites -> green, broken sites -> red in the statusbar
|
||||||
* Vimperator now sets the window title, so it's "vimperator.mozdev.org -
|
* Vimperator now sets the window title, so it's "vimperator.mozdev.org -
|
||||||
Vimperator" instead of "vimperator.mozdev.org - Mozilla Firefox"
|
Vimperator" instead of "vimperator.mozdev.org - Mozilla Firefox"
|
||||||
Use :set title=... to change it back (help from Hannes Rist)
|
Use :set title=... to change it back (help from Hannes Rist)
|
||||||
|
|||||||
@@ -83,10 +83,10 @@ table.settings {
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
.status_secure, .status_secure * {
|
.status_secure, .status_secure * {
|
||||||
background-color: yellow;
|
background-color: #B0FF00; /* light green */
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
.status_broken, .status_broken * {
|
.status_broken, .status_broken * {
|
||||||
background-color: #ff9900;
|
background-color: #FF6060; /* light red */
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,11 +41,12 @@ var heredoc = '';
|
|||||||
// handles to our gui elements
|
// handles to our gui elements
|
||||||
var command_line = null;
|
var command_line = null;
|
||||||
|
|
||||||
function nsBrowserStatusHandler2() /*{{{*/
|
// FIXME: if I rename this to another class name, it doesn't work, find the reason
|
||||||
|
function nsBrowserStatusHandler() /*{{{*/
|
||||||
{
|
{
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
nsBrowserStatusHandler2.prototype =
|
nsBrowserStatusHandler.prototype =
|
||||||
{
|
{
|
||||||
QueryInterface : function(aIID)
|
QueryInterface : function(aIID)
|
||||||
{
|
{
|
||||||
@@ -669,7 +670,13 @@ function Vimperator()
|
|||||||
// this.search = new Search();
|
// this.search = new Search();
|
||||||
|
|
||||||
/////////////// callbacks ////////////////////////////
|
/////////////// callbacks ////////////////////////////
|
||||||
// type='[submit|change|cancel|complete]'
|
/**
|
||||||
|
* @param type Can be:
|
||||||
|
* "submit": when the user pressed enter in the command line
|
||||||
|
* "change"
|
||||||
|
* "cancel"
|
||||||
|
* "complete"
|
||||||
|
*/
|
||||||
this.registerCallback = function(type, mode, func)
|
this.registerCallback = function(type, mode, func)
|
||||||
{
|
{
|
||||||
// TODO: check if callback is already registered
|
// TODO: check if callback is already registered
|
||||||
@@ -732,19 +739,14 @@ function Vimperator()
|
|||||||
showMode();
|
showMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* After pressing Escape, put focus on a non-input field of the browser document */
|
// After pressing Escape, put focus on a non-input field of the browser document
|
||||||
this.focusContent = function()
|
this.focusContent = function()
|
||||||
{
|
{
|
||||||
// count = -1;
|
|
||||||
// inputbuffer = "";
|
|
||||||
|
|
||||||
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(Components.interfaces.nsIWindowWatcher);
|
var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"].getService(Components.interfaces.nsIWindowWatcher);
|
||||||
if (window == ww.activeWindow && document.commandDispatcher.focusedElement)
|
if (window == ww.activeWindow && document.commandDispatcher.focusedElement)
|
||||||
document.commandDispatcher.focusedElement.blur();
|
document.commandDispatcher.focusedElement.blur();
|
||||||
|
|
||||||
content.focus();
|
content.focus();
|
||||||
//this.setMode(vimperator.modes.NORMAL);
|
|
||||||
//showMode();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.onEvent = function(event)/*{{{*/
|
this.onEvent = function(event)/*{{{*/
|
||||||
@@ -978,6 +980,7 @@ function Vimperator()
|
|||||||
}/*}}}*/
|
}/*}}}*/
|
||||||
|
|
||||||
|
|
||||||
|
// FIXME: is not called for onLocationChange etc, find the reason
|
||||||
this.browserStatusHandler = function() { this.init(); }
|
this.browserStatusHandler = function() { this.init(); }
|
||||||
this.browserStatusHandler.prototype =
|
this.browserStatusHandler.prototype =
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user