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:
@@ -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)))
|
||||
);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user