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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user