summaryrefslogtreecommitdiff
path: root/common/modules
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-07-29 03:42:31 -0400
committerKris Maglione <maglione.k@gmail.com>2011-07-29 03:42:31 -0400
commit2c59c01232593776f296086c609f84123708c615 (patch)
tree40ff851abb2ecf5f73063929c3609ba68340828c /common/modules
parent3b3d1559863d2a622d375905577def417bff3471 (diff)
downloadpentadactyl-2c59c01232593776f296086c609f84123708c615.tar.gz
:emenu: Hide hidden items, disable disabled items. Closes issue #582.
Diffstat (limited to 'common/modules')
-rw-r--r--common/modules/completion.jsm2
-rw-r--r--common/modules/config.jsm2
-rw-r--r--common/modules/template.jsm2
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}&#xa0;</li>
+ <li highlight={"CompResult " + item.highlight}>{text}&#xa0;</li>
<li highlight="CompDesc">{desc}&#xa0;</li>
</div>;
// </e4x>