1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-29 14:05:45 +01:00

Cleanup ui.js history searching. Fix white-space in :echo/! output.

This commit is contained in:
Kris Maglione
2008-12-06 18:10:22 -05:00
parent 138d8ec8c7
commit 183b48afa1
5 changed files with 172 additions and 195 deletions

View File

@@ -86,6 +86,20 @@ const template = {
filter: function (str) <span highlight="Filter">{str}</span>,
gradient: function (left, right)
<div highlight="Gradient">
<div style="height: 0px">
<div highlight={right + " Gradient"}
style="border: 0 !important; margin: 0 !important; padding: 0 !important;"/>
</div>
<table width="100%" style="height: 100%">
<tr>
{ template.map(util.range(0, 100), function (i)
<td highlight={left} style={"opacity: " + (1 - i / 100)}/>) }
</tr>
</table>
</div>,
// if "processStrings" is true, any passed strings will be surrounded by " and
// any line breaks are displayed as \n
highlight: function highlight(arg, processStrings, clip)
@@ -192,7 +206,7 @@ const template = {
generic: function generic(xml)
{
return <>:{commandline.getCommand()}<br/></> + xml;
return <>:{commandline.getCommand()}<br/>{xml}</>;
},
// every item must have a .xml property which defines how to draw itself