1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 04:24:13 +01:00

changed statusbar colors to match vim by default

This commit is contained in:
Martin Stubenschrott
2007-09-24 13:11:15 +00:00
parent ca3f4282b3
commit 01c3f87f59
5 changed files with 179 additions and 14 deletions

View File

@@ -149,6 +149,7 @@ fieldset.paypal {
-moz-appearance: none !important;
min-height: 18px !important;
border: none !important;
font-weight: bold;
}
#vimperator-statusline {
font-family: monospace;
@@ -181,10 +182,12 @@ fieldset.paypal {
background-color: black;
}
/*
.status_insecure, .status_insecure * {
/* colors for the statusbar */
/* #status-bar is included so it also get's the right color before the first setClass("insecure") */
#status-bar, .status_insecure, .status_insecure * {
background-color: black; /* light green */
color: white;
}
*/
.status_secure, .status_secure * {
background-color: #B0FF00; /* light green */
color: black;

View File

@@ -506,6 +506,11 @@ function Events() //{{{
vimperator.modes.reset();
break;
case vimperator.modes.COMMAND_LINE:
vimperator.commandline.close();
vimperator.modes.reset();
break;
default:
// clear any selection made
var selection = window.content.getSelection();

View File

@@ -268,6 +268,16 @@ function CommandLine() //{{{
command_widget.focus();
};
/* normally used when pressing esc, does not execute a command */
this.close = function()
{
var res = vimperator.triggerCallback("cancel", cur_extended_mode);
history.add(this.getCommand());
//vimperator.modes.set(old_mode, old_extended_mode);
vimperator.statusline.updateProgress(""); // we may have a "match x of y" visible
this.clear();
}
// FIXME: flags not yet really functional --mst
this.echo = function(str, flags)
{
@@ -381,6 +391,7 @@ function CommandLine() //{{{
var key = vimperator.events.toString(event);
// user pressed ENTER to carry out a command
// user pressing ESCAPE is handled in the global onEscape
if (vimperator.events.isAcceptKey(key))
{
var mode = cur_extended_mode; // save it here, as setMode() resets it
@@ -391,17 +402,6 @@ function CommandLine() //{{{
return vimperator.triggerCallback("submit", mode, command);
}
// user pressed ESCAPE to cancel this prompt
else if (vimperator.events.isCancelKey(key))
{
var res = vimperator.triggerCallback("cancel", cur_extended_mode);
history.add(command);
vimperator.modes.set(old_mode, old_extended_mode);
completionlist.hide();
vimperator.statusline.updateProgress(""); // we may have a "match x of y" visible
this.clear();
return res;
}
// user pressed UP or DOWN arrow to cycle history completion
else if (key == "<Up>" || key == "<Down>")