1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 21:07:59 +01:00

use standard-ish Vim highlight group names for the statusline styling

This commit is contained in:
Doug Kearns
2007-10-08 00:44:49 +00:00
parent 22e77df0ea
commit 0f84ec6ee7
2 changed files with 30 additions and 39 deletions

View File

@@ -1058,7 +1058,22 @@ function StatusLine() //{{{
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)