1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:27:58 +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

@@ -176,9 +176,7 @@ liberator.Search = function () //{{{
return;
}
var baseNode = <span style={liberator.options["hlsearchstyle"] +
"; display: inline; font-size: inherit; padding: 0"}
class="__liberator-search"/>
var baseNode = <span class="__liberator-search"/>
baseNode = liberator.util.xmlToDom(baseNode, window.content.document);
var body = doc.body;
@@ -245,12 +243,6 @@ liberator.Search = function () //{{{
}
});
// TODO: use Search highlight group instead when we have proper highlight
// support
liberator.options.add(["hlsearchstyle", "hlss"],
"CSS specification of highlighted search items",
"string", "color: black; background-color: yellow; padding: 0; display: inline;");
liberator.options.add(["ignorecase", "ic"],
"Ignore case in search patterns",
"boolean", true);