1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:58:00 +01:00

Get rid of *style options and add highlight groups

This commit is contained in:
Kris Maglione
2008-10-07 14:46:18 +00:00
parent 45ad9f0c8b
commit 12a6b7ee05
4 changed files with 24 additions and 37 deletions

View File

@@ -123,11 +123,6 @@ const liberator = (function () //{{{
return value;
}
});
liberator.options.add(["visualbellstyle", "t_vb"],
"CSS specification of the visual bell",
"string", "border: none; background-color: black;"
);
}
function addMappings()
@@ -663,20 +658,15 @@ const liberator = (function () //{{{
{
if (liberator.options["visualbell"])
{
var vbs = liberator.options["visualbellstyle"];
if (vbs)
{
// flash the visual bell
var popup = document.getElementById("liberator-visualbell");
var win = liberator.config.visualbellWindow;
var box = document.getBoxObjectFor(win);
// flash the visual bell
var popup = document.getElementById("liberator-visualbell");
var win = liberator.config.visualbellWindow;
var box = document.getBoxObjectFor(win);
popup.style.cssText = vbs;
popup.height = box.height;
popup.width = box.width;
popup.openPopup(win, "overlap", 0, 0, false, false);
setTimeout(function () { popup.hidePopup(); }, 50);
}
popup.height = box.height;
popup.width = box.width;
popup.openPopup(win, "overlap", 0, 0, false, false);
setTimeout(function () { popup.hidePopup(); }, 50);
}
else
{