mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 23:18:01 +01:00
use standard-ish Vim highlight group names for the statusline styling
This commit is contained in:
@@ -1058,7 +1058,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)
|
||||||
|
|||||||
@@ -12,8 +12,7 @@
|
|||||||
/* 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;
|
||||||
}
|
}
|
||||||
@@ -49,22 +48,6 @@
|
|||||||
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;
|
||||||
/*
|
/*
|
||||||
@@ -77,10 +60,6 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#vimperator-multiline-output {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* highlight groups */
|
/* highlight groups */
|
||||||
|
|
||||||
.hl-Normal {
|
.hl-Normal {
|
||||||
@@ -113,28 +92,25 @@
|
|||||||
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