Bug 945425 - Show the menu button on the Metro start page [r=sfoster]

This commit is contained in:
Matt Brubeck 2013-12-06 21:31:57 -08:00
parent cb2dcbec3c
commit 0460c33036
3 changed files with 8 additions and 6 deletions

View File

@ -115,10 +115,11 @@ var Appbar = {
onMenuButton: function(aEvent) {
let typesArray = [];
if (!BrowserUI.isStartTabVisible)
if (!BrowserUI.isStartTabVisible) {
typesArray.push("find-in-page");
if (ContextCommands.getPageSource())
typesArray.push("view-page-source");
if (ContextCommands.getPageSource())
typesArray.push("view-page-source");
}
if (ContextCommands.getStoreLink())
typesArray.push("ms-meta-data");
if (ConsolePanelView.enabled)

View File

@ -265,10 +265,10 @@ Desktop browser's sync prefs.
<hbox id="toolbar-context-page" pack="end">
<circularprogressindicator id="download-progress" class="appbar-primary"
oncommand="MetroDownloadsView.onDownloadButton()"/>
<toolbarbutton id="star-button" class="appbar-primary"
<toolbarbutton id="star-button" class="appbar-primary hide-on-start"
type="checkbox"
oncommand="Appbar.onStarButton()"/>
<toolbarbutton id="pin-button" class="appbar-primary"
<toolbarbutton id="pin-button" class="appbar-primary hide-on-start"
type="checkbox"
oncommand="Appbar.onPinButton()"/>
<toolbarbutton id="menu-button" class="appbar-primary"

View File

@ -714,6 +714,7 @@ documenttab[selected] .documenttab-selection {
/* Contextual toolbar controls */
#toolbar-context-autocomplete,
.hide-on-start,
#toolbar-context-page {
transition-property: opacity, visibility;
transition-duration: @forward_transition_length@;
@ -721,7 +722,7 @@ documenttab[selected] .documenttab-selection {
}
#toolbar-contextual:not([autocomplete]) #toolbar-context-autocomplete,
#toolbar-contextual[startpage] #toolbar-context-page,
#toolbar-contextual[startpage] .hide-on-start,
#toolbar-contextual[autocomplete] #toolbar-context-page {
opacity: 0;
visibility: hidden;