mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 17:22:26 +01:00
move the statusbar color handling to the css file. for the future, whenever a background color is set, the foreground color should also be set, otherwise text might be unreadable in dark themes (or light themes, depending on what theme the user has)
This commit is contained in:
@@ -147,11 +147,11 @@ nsBrowserStatusHandler2.prototype =
|
||||
{
|
||||
const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener;
|
||||
if(aState & nsIWebProgressListener.STATE_IS_INSECURE)
|
||||
vimperator.statusline.setColor("transparent");
|
||||
vimperator.statusline.setClass("insecure");
|
||||
else if(aState & nsIWebProgressListener.STATE_IS_BROKEN)
|
||||
vimperator.statusline.setColor("orange");
|
||||
vimperator.statusline.setClass("broken");
|
||||
else if(aState & nsIWebProgressListener.STATE_IS_SECURE)
|
||||
vimperator.statusline.setColor("yellow");
|
||||
vimperator.statusline.setClass("secure");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user