mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 22:15:48 +01:00
Add Enabled and Disabled highlight groups.
Currently only used in the :extensions output.
This commit is contained in:
@@ -536,9 +536,8 @@ const liberator = (function () //{{{
|
|||||||
["Name", "Version", "Status", "Description"], [],
|
["Name", "Version", "Status", "Description"], [],
|
||||||
([template.icon(e, e.name),
|
([template.icon(e, e.name),
|
||||||
e.version,
|
e.version,
|
||||||
/* XXX: Inline style. */
|
e.enabled ? <span highlight="Enabled">enabled</span>
|
||||||
e.enabled ? <span style="color: blue;">enabled</span>
|
: <span highlight="Disabled">disabled</span>,
|
||||||
: <span style="color: red;">disabled</span>,
|
|
||||||
e.description] for ([, e] in Iterator(extensions)))
|
e.description] for ([, e] in Iterator(extensions)))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ Highlights.prototype.CSS = <![CDATA[
|
|||||||
Object color: maroon;
|
Object color: maroon;
|
||||||
String color: green;
|
String color: green;
|
||||||
|
|
||||||
|
Enabled color: green;
|
||||||
|
Disabled color: red;
|
||||||
|
|
||||||
Normal color: black; background: white;
|
Normal color: black; background: white;
|
||||||
ErrorMsg color: white; background: red; font-weight: bold;
|
ErrorMsg color: white; background: red; font-weight: bold;
|
||||||
InfoMsg color: black; background: white;
|
InfoMsg color: black; background: white;
|
||||||
|
|||||||
Reference in New Issue
Block a user