1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 06:08:02 +01:00

merge the existing status bar with the standard FF status bar

This commit is contained in:
Doug Kearns
2007-09-22 14:07:58 +00:00
parent 6530f8f229
commit ee8ecc8a34
5 changed files with 84 additions and 74 deletions

View File

@@ -1005,6 +1005,8 @@ function StatusLine() //{{{
////////////////////// PRIVATE SECTION /////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
var status_bar = document.getElementById("status-bar");
// our status bar fields
var statusline_widget = document.getElementById("vimperator-statusline");
var url_widget = document.getElementById("vimperator-statusline-field-url");
@@ -1017,16 +1019,9 @@ function StatusLine() //{{{
////////////////////// PUBLIC SECTION //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
// use names for the color or "transparent" to remove color information
this.setColor = function(color)
{
if (!color)
color = "transparent";
statusline_widget.setAttribute("style", "background-color: " + color);
};
this.setClass = function(type)
{
statusline_widget.setAttribute("class", "status_" + type);
status_bar.setAttribute("class", "chromeclass-status status_" + type);
};
this.updateUrl = function(url)