diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-07-29 03:42:31 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-07-29 03:42:31 -0400 |
commit | 2c59c01232593776f296086c609f84123708c615 (patch) | |
tree | 40ff851abb2ecf5f73063929c3609ba68340828c /common/modules | |
parent | 3b3d1559863d2a622d375905577def417bff3471 (diff) | |
download | pentadactyl-2c59c01232593776f296086c609f84123708c615.tar.gz |
:emenu: Hide hidden items, disable disabled items. Closes issue #582.
Diffstat (limited to 'common/modules')
-rw-r--r-- | common/modules/completion.jsm | 2 | ||||
-rw-r--r-- | common/modules/config.jsm | 2 | ||||
-rw-r--r-- | common/modules/template.jsm | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/common/modules/completion.jsm b/common/modules/completion.jsm index 2871d4f3..9671e95a 100644 --- a/common/modules/completion.jsm +++ b/common/modules/completion.jsm @@ -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]; diff --git a/common/modules/config.jsm b/common/modules/config.jsm index 7f30adcc..11dd9488 100644 --- a/common/modules/config.jsm +++ b/common/modules/config.jsm @@ -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; diff --git a/common/modules/template.jsm b/common/modules/template.jsm index d81ec595..6e18dc50 100644 --- a/common/modules/template.jsm +++ b/common/modules/template.jsm @@ -197,7 +197,7 @@ var Template = Module("Template", { - from pushing the baseline down and enlarging - the row. --> - <li highlight="CompResult">{text} </li> + <li highlight={"CompResult " + item.highlight}>{text} </li> <li highlight="CompDesc">{desc} </li> </div>; // </e4x> |