diff --git a/content/bindings.xml b/content/bindings.xml
index d9653c5e..6d9ecb2b 100644
--- a/content/bindings.xml
+++ b/content/bindings.xml
@@ -21,117 +21,6 @@
-
-
-
-
-
-
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
-
-
-
-
-
diff --git a/content/style.js b/content/style.js
index de9c4448..f71a4113 100644
--- a/content/style.js
+++ b/content/style.js
@@ -27,7 +27,7 @@ function Highlights(name, store, serial)
Preview color: gray;
CompTitle color: magenta; background: white; font-weight: bold;
- CompTitle>* border-bottom: 1px dashed magenta;
+ CompTitle>* /* border-bottom: 1px dashed magenta; */
CompMsg font-style: italic; margin-left: 16px;
CompItem
CompItem[selected] background: yellow;
@@ -41,6 +41,10 @@ function Highlights(name, store, serial)
CompMore text-align: center; height: .5ex; line-height: .5ex;
CompMore::after content: "\2304" /* Unicode down arrowhead */
+ Gradient height: 1px; margin-bottom: -1px;
+ GradientLeft background-color: magenta;
+ GradientRight background-color: white;
+
Indicator color: blue;
Filter font-weight: bold;
diff --git a/content/ui.js b/content/ui.js
index 94c483ba..d9ff03c9 100644
--- a/content/ui.js
+++ b/content/ui.js
@@ -1323,6 +1323,17 @@ function ItemList(id) //{{{
doc.body.appendChild(doc.createTextNode(""));
doc.body.style.borderTop = "1px solid black"; // FIXME: For cases where completions/MOW are shown at once, or ls=0. Should use :highlight.
+ let gradient =
+
+
+
+
+ { template.map(util.range(0, 100), function (i)
+ | ) }
+
+
+
;
+
var items = null;
var startIndex = -1; // The index of the first displayed item
var endIndex = -1; // The index one *after* the last displayed item
@@ -1371,6 +1382,7 @@ function ItemList(id) //{{{
{ context.createRow(context.title || [], "CompTitle") }
+ { gradient }
@@ -1418,7 +1430,7 @@ function ItemList(id) //{{{
nodes.message.textContent = context.message;
nodes.message.style.display = context.message ? "block" : "none";
nodes.waiting.style.display = context.incomplete ? "block" : "none";
- nodes.up.style.display = "none";
+ nodes.up.style.opacity = "0";
nodes.down.style.display = "none";
let root = nodes.root
@@ -1446,8 +1458,13 @@ function ItemList(id) //{{{
else if (!display && row.parentNode == items)
items.removeChild(row);
}
- nodes.up.style.display = (start == 0) ? "none" : "block";
- nodes.down.style.display = (end == context.items.length) ? "none" : "block";
+ if (context.items.length == 0)
+ return;
+ nodes.up.style.opacity = (start == 0) ? "0" : "1";
+ if (end != context.items.length)
+ nodes.down.style.display = "block"
+ else
+ nodes.up.style.display = "block"
});
divNodes.noCompletions.style.display = haveCompletions ? "none" : "block";