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

:emenu: Hide hidden items, disable disabled items. Closes issue #582.

This commit is contained in:
Kris Maglione
2011-07-29 03:42:31 -04:00
parent 3b3d155986
commit 2c59c01232
5 changed files with 38 additions and 30 deletions

View File

@@ -338,7 +338,7 @@ var CompletionContext = Class("CompletionContext", {
* The prototype object for items returned by {@link items}.
*/
get itemPrototype() {
let res = {};
let res = { highlight: "" };
function result(quote) {
yield ["result", quote ? function () quote[0] + util.trapErrors(1, quote, this.text) + quote[2]
: function () this.text];

View File

@@ -468,6 +468,8 @@ var ConfigBase = Class("ConfigBase", {
color: red !important; background: white !important;
StatusWarningMsg /* A warning message in the status line */ \
color: red !important; background: transparent !important;
Disabled /* Disabled items */ \
color: gray !important;
CmdLine;>*;;FontFixed /* The command line */ \
padding: 1px !important;

View File

@@ -197,7 +197,7 @@ var Template = Module("Template", {
- from pushing the baseline down and enlarging
- the row.
-->
<li highlight="CompResult">{text}&#xa0;</li>
<li highlight={"CompResult " + item.highlight}>{text}&#xa0;</li>
<li highlight="CompDesc">{desc}&#xa0;</li>
</div>;
// </e4x>