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

Move variable-width status column after the controls column in :addons. Dim inactive add-ons.

This commit is contained in:
Kris Maglione
2011-10-05 05:33:06 -04:00
parent 6a60b54cce
commit 31f9e43305
2 changed files with 4 additions and 2 deletions

View File

@@ -149,7 +149,6 @@ var Addon = Class("Addon", {
<tr highlight="Addon" key="row" xmlns:dactyl={NS} xmlns={XHTML}>
<td highlight="AddonName" key="name"/>
<td highlight="AddonVersion" key="version"/>
<td highlight="AddonStatus" key="status"/>
<td highlight="AddonButtons Buttons">
<a highlight="Button" href="javascript:0" key="enable">{_("addon.action.On")}</a>
<a highlight="Button" href="javascript:0" key="disable">{_("addon.action.Off")}</a>
@@ -157,6 +156,7 @@ var Addon = Class("Addon", {
<a highlight="Button" href="javascript:0" key="update">{_("addon.action.Update")}</a>
<a highlight="Button" href="javascript:0" key="options">{_("addon.action.Options")}</a>
</td>
<td highlight="AddonStatus" key="status"/>
<td highlight="AddonDescription" key="description"/>
</tr>,
this.list.document, this.nodes);
@@ -224,6 +224,7 @@ var Addon = Class("Addon", {
this.nodes.version.textContent = this.version;
update("status", this.statusInfo);
this.nodes.description.textContent = this.description;
DOM(this.nodes.row).attr("active", this.isActive || null);
for (let node in values(this.nodes))
if (node.update && node.update !== callee)
@@ -284,8 +285,8 @@ var AddonList = Class("AddonList", {
<tr highlight="AddonHead">
<td>{_("title.Name")}</td>
<td>{_("title.Version")}</td>
<td>{_("title.Status")}</td>
<td/>
<td>{_("title.Status")}</td>
<td>{_("title.Description")}</td>
</tr>
</table>, this.document, this.nodes);

View File

@@ -307,6 +307,7 @@ AddonHead>*;;;AddonCell
Addon /* An add-on in the :addons manager */ \
display: table-row;
Addon:not([active]) color: #888;
Addon:nth-child(2n+1) background: rgba(0, 0, 0, .04);
Addon>*;;;AddonCell