Bug 881436 - Add History Sidebar toggle item to History widget panel. r=jaws

--HG--
extra : rebase_source : a6b7b7e2cf689c35b2a18e705cc232efa86eeac4
This commit is contained in:
Tetsuharu OHZEKI 2013-12-17 22:12:13 -05:00
parent a59161e29e
commit 76199d1ffe
3 changed files with 11 additions and 0 deletions

View File

@ -36,6 +36,12 @@
<panelview id="PanelUI-history" flex="1">
<label value="&appMenuHistory.label;"/>
<toolbarbutton id="appMenuViewHistorySidebar" tabindex="0"
label="&appMenuHistory.viewSidebar.label;"
type="checkbox"
oncommand="toggleSidebar('viewHistorySidebar'); PanelUI.hide();">
<observes element="viewHistorySidebar" attribute="checked"/>
</toolbarbutton>
<toolbarbutton id="appMenuClearRecentHistory" tabindex="0"
label="&appMenuHistory.clearRecent.label;"
command="Tools:Sanitize"/>

View File

@ -328,6 +328,7 @@ These should match what Safari and other Apple applications use on OS X Lion. --
<!ENTITY appMenuHistory.showAll.label "Show All History">
<!ENTITY appMenuHistory.clearRecent.label "Clear Recent History…">
<!ENTITY appMenuHistory.restoreSession.label "Restore Previous Session">
<!ENTITY appMenuHistory.viewSidebar.label "View History Sidebar">
<!ENTITY customizeMenu.addToToolbar.label "Add to Toolbar">
<!ENTITY customizeMenu.addToToolbar.accesskey "A">

View File

@ -519,12 +519,14 @@ toolbarpaletteitem[place="palette"] > #search-container {
#PanelUI-developerItems > toolbarbutton[checked="true"],
#PanelUI-bookmarks > toolbarbutton[checked="true"],
#PanelUI-history > toolbarbutton[checked="true"],
.PanelUI-characterEncodingView-list > toolbarbutton[current] {
-moz-padding-start: 4px;
}
#PanelUI-developerItems > toolbarbutton[checked="true"] > .toolbarbutton-text,
#PanelUI-bookmarks > toolbarbutton[checked="true"] > .toolbarbutton-text,
#PanelUI-history > toolbarbutton[checked="true"] > .toolbarbutton-text,
.PanelUI-characterEncodingView-list > toolbarbutton[current] > .toolbarbutton-text,
#customizationui-widget-panel .PanelUI-characterEncodingView-list > toolbarbutton[current] > .toolbarbutton-text {
-moz-padding-start: 0px;
@ -532,6 +534,7 @@ toolbarpaletteitem[place="palette"] > #search-container {
#BMB_bookmarksPopup > menuitem[checked="true"]::before,
#PanelUI-bookmarks > toolbarbutton[checked="true"]::before,
#PanelUI-history > toolbarbutton[checked="true"]::before,
#PanelUI-developerItems > toolbarbutton[checked="true"]::before,
.PanelUI-characterEncodingView-list > toolbarbutton[current]::before {
content: "✓";
@ -540,6 +543,7 @@ toolbarpaletteitem[place="palette"] > #search-container {
}
#PanelUI-bookmarks > toolbarbutton[checked="true"]::before,
#PanelUI-history > toolbarbutton[checked="true"]::before,
#PanelUI-developerItems > toolbarbutton[checked="true"]::before,
.PanelUI-characterEncodingView-list > toolbarbutton[current]::before {
-moz-margin-end: -2px;