mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 14:27:58 +01:00
use standard-ish Vim highlight group names for the statusline styling
This commit is contained in:
@@ -1039,7 +1039,22 @@ function StatusLine() //{{{
|
|||||||
|
|
||||||
this.setClass = function(type)
|
this.setClass = function(type)
|
||||||
{
|
{
|
||||||
status_bar.setAttribute("class", "chromeclass-status status_" + type);
|
var highlight_group;
|
||||||
|
|
||||||
|
switch (type)
|
||||||
|
{
|
||||||
|
case "secure":
|
||||||
|
highlight_group = "hl-StatusLineSecure";
|
||||||
|
break;
|
||||||
|
case "broken":
|
||||||
|
highlight_group = "hl-StatusLineBroken";
|
||||||
|
break;
|
||||||
|
case "insecure":
|
||||||
|
highlight_group = "hl-StatusLine";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
status_bar.setAttribute("class", "chromeclass-status " + highlight_group);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.updateUrl = function(url)
|
this.updateUrl = function(url)
|
||||||
|
|||||||
@@ -40,8 +40,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
/* the selected item in listboxes is hardly readable without this */
|
/* the selected item in listboxes is hardly readable without this */
|
||||||
#vimperator-completion > listitem[selected="true"] > listcell,
|
#vimperator-completion > listitem[selected="true"] > listcell,
|
||||||
#vimperator-bufferwindow > listitem[selected="true"] > listcell,
|
#vimperator-bufferwindow > listitem[selected="true"] > listcell,
|
||||||
#vimperator-previewwindow > listitem[selected="true"] > listcell
|
#vimperator-previewwindow > listitem[selected="true"] > listcell {
|
||||||
{
|
|
||||||
background-color: Highlight !important;
|
background-color: Highlight !important;
|
||||||
color: HighlightText !important;
|
color: HighlightText !important;
|
||||||
}
|
}
|
||||||
@@ -77,22 +76,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* colors for the statusbar */
|
|
||||||
/* #status-bar is included so it also gets the right color before the first setClass("insecure") */
|
|
||||||
#status-bar,
|
|
||||||
#status-bar.status_insecure {
|
|
||||||
background-color: black;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
#status-bar.status_secure {
|
|
||||||
background-color: #B0FF00; /* light green */
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
#status-bar.status_broken {
|
|
||||||
background-color: #FF6060; /* light red */
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#vimperator-commandline {
|
#vimperator-commandline {
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
/*
|
/*
|
||||||
@@ -105,10 +88,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#vimperator-multiline-output {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
#vimperator-visualbell {
|
#vimperator-visualbell {
|
||||||
border: none;
|
border: none;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
@@ -146,28 +125,25 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
background-color: white;
|
background-color: white;
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
.hl-StatusLine {
|
||||||
.hl-Normal {
|
background-color: black;
|
||||||
background-color: white;
|
color: white;
|
||||||
|
}
|
||||||
|
.hl-StatusLineSecure {
|
||||||
|
background-color: #B0FF00; / * light green * /
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
.hl-ErrorMsg {
|
.hl-StatusLineBroken {
|
||||||
background-color: red;
|
background-color: #FF6060; / * light red * /
|
||||||
color: white;
|
color: black;
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
.hl-MoreMsg {
|
|
||||||
color: green;
|
|
||||||
background-color: white;
|
|
||||||
}
|
|
||||||
.hl-Title {
|
|
||||||
color: magenta;
|
|
||||||
background-color: white;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MOW */
|
/* MOW */
|
||||||
|
|
||||||
|
#vimperator-multiline-output {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
#vimperator-multiline-output-content {
|
#vimperator-multiline-output-content {
|
||||||
white-space: pre; /* -moz-pre-wrap FIXME: Should lines wrap like Vim? */
|
white-space: pre; /* -moz-pre-wrap FIXME: Should lines wrap like Vim? */
|
||||||
font-family: -moz-fixed;
|
font-family: -moz-fixed;
|
||||||
|
|||||||
Reference in New Issue
Block a user