Bug 1037115 - show runtime actions, and add a disconnect button. r=jryans

This commit is contained in:
Paul Rouget 2014-07-15 21:03:23 +02:00
parent d3ba9684de
commit b745971362
3 changed files with 10 additions and 5 deletions

View File

@ -573,14 +573,12 @@ let UI = {
permissionsCmd.removeAttribute("disabled");
disconnectCmd.removeAttribute("disabled");
detailsCmd.removeAttribute("disabled");
box.removeAttribute("hidden");
runtimePanelButton.setAttribute("active", "true");
} else {
screenshotCmd.setAttribute("disabled", "true");
permissionsCmd.setAttribute("disabled", "true");
disconnectCmd.setAttribute("disabled", "true");
detailsCmd.setAttribute("disabled", "true");
box.setAttribute("hidden", "true");
runtimePanelButton.removeAttribute("active");
}

View File

@ -154,10 +154,11 @@
<vbox id="runtime-panel-simulators"></vbox>
<label class="panel-header">&runtimePanel_custom;</label>
<vbox id="runtime-panel-custom"></vbox>
<vbox flex="1" id="runtime-actions" hidden="true">
<vbox flex="1" id="runtime-actions">
<toolbarbutton class="panel-item" id="runtime-details" command="cmd_showRuntimeDetails"/>
<toolbarbutton class="panel-item" id="runtime-permissions" command="cmd_showPermissionsTable"/>
<toolbarbutton class="panel-item" id="runtime-screenshot" command="cmd_takeScreenshot"/>
<toolbarbutton class="panel-item" id="runtime-disconnect" command="cmd_disconnectRuntime"/>
</vbox>
</vbox>
</panel>

View File

@ -201,8 +201,9 @@ panel > .panel-arrowcontainer > .panel-arrowcontent {
}
#runtime-details,
#runtime-permissions,
#runtime-screenshot,
#runtime-permissions,
#runtime-disconnect,
#runtime-panel-nousbdevice,
#runtime-panel-noadbhelper,
#runtime-panel-nosimulator,
@ -216,6 +217,7 @@ panel > .panel-arrowcontainer > .panel-arrowcontent {
#runtime-details { -moz-image-region: rect(156px,338px,182px,312px) }
#runtime-screenshot { -moz-image-region: rect(130px,338px,156px,312px) }
#runtime-permissions { -moz-image-region: rect(104px,338px,130px,312px) }
#runtime-disconnect { -moz-image-region: rect(52px,338px,78px,312px) }
#runtime-panel-nousbdevice { -moz-image-region: rect(156px,338px,182px,312px) }
#runtime-panel-noadbhelper { -moz-image-region: rect(234px,338px,260px,312px) }
#runtime-panel-nosimulator { -moz-image-region: rect(0px,338px,26px,312px) }
@ -237,7 +239,11 @@ panel > .panel-arrowcontainer > .panel-arrowcontent {
padding-bottom: 8px;
}
#runtime-actions > toolbarbutton:hover {
#runtime-actions > toolbarbutton[disabled="true"] {
opacity: 0.4;
}
#runtime-actions > toolbarbutton:not([disabled="true"]):hover {
background-color: #CBF0FE;
}