mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 10:07:59 +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)
|
||||
{
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user