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

Add Enabled and Disabled highlight groups.

Currently only used in the :extensions output.
This commit is contained in:
Doug Kearns
2009-09-17 15:56:54 +10:00
parent 95998afae1
commit 990645c397
2 changed files with 5 additions and 3 deletions

View File

@@ -536,9 +536,8 @@ const liberator = (function () //{{{
["Name", "Version", "Status", "Description"], [],
([template.icon(e, e.name),
e.version,
/* XXX: Inline style. */
e.enabled ? <span style="color: blue;">enabled</span>
: <span style="color: red;">disabled</span>,
e.enabled ? <span highlight="Enabled">enabled</span>
: <span highlight="Disabled">disabled</span>,
e.description] for ([, e] in Iterator(extensions)))
);

View File

@@ -29,6 +29,9 @@ Highlights.prototype.CSS = <![CDATA[
Object color: maroon;
String color: green;
Enabled color: green;
Disabled color: red;
Normal color: black; background: white;
ErrorMsg color: white; background: red; font-weight: bold;
InfoMsg color: black; background: white;