mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Backed out changeset ea38f867cc07 due to possibly introducing leaks.
This commit is contained in:
parent
0b1883ccb9
commit
20c7061657
@ -10,6 +10,26 @@
|
|||||||
noautofocus="true">
|
noautofocus="true">
|
||||||
<panelmultiview id="PanelUI-multiView" mainViewId="PanelUI-mainView">
|
<panelmultiview id="PanelUI-multiView" mainViewId="PanelUI-mainView">
|
||||||
<panelview id="PanelUI-mainView" flex="1">
|
<panelview id="PanelUI-mainView" flex="1">
|
||||||
|
<vbox id="PanelUI-pageControls" pack="center">
|
||||||
|
<hbox class="PanelUI-editControls">
|
||||||
|
<toolbarbutton id="PanelUI-cut-btn" flex="1"
|
||||||
|
label="&cutCmd.label;"
|
||||||
|
tooltiptext="&cutButton.tooltip;"
|
||||||
|
class="panel-combined-button"
|
||||||
|
command="cmd_cut"/>
|
||||||
|
<toolbarbutton id="PanelUI-copy-btn" flex="1"
|
||||||
|
label="©Cmd.label;"
|
||||||
|
tooltiptext="©Button.tooltip;"
|
||||||
|
class="panel-combined-button"
|
||||||
|
command="cmd_copy"/>
|
||||||
|
<toolbarbutton id="PanelUI-paste-btn" flex="1"
|
||||||
|
label="&pasteCmd.label;"
|
||||||
|
tooltiptext="&pasteButton.tooltip;"
|
||||||
|
class="panel-combined-button"
|
||||||
|
command="cmd_paste"/>
|
||||||
|
</hbox>
|
||||||
|
</vbox>
|
||||||
|
|
||||||
<vbox id="PanelUI-contents" type="grid"/>
|
<vbox id="PanelUI-contents" type="grid"/>
|
||||||
|
|
||||||
<vbox id="PanelUI-mainView-spring" flex="1"/>
|
<vbox id="PanelUI-mainView-spring" flex="1"/>
|
||||||
|
@ -118,7 +118,6 @@ let CustomizableUIInternal = {
|
|||||||
anchor: "PanelUI-menu-button",
|
anchor: "PanelUI-menu-button",
|
||||||
type: CustomizableUI.TYPE_MENU_PANEL,
|
type: CustomizableUI.TYPE_MENU_PANEL,
|
||||||
defaultPlacements: [
|
defaultPlacements: [
|
||||||
"edit-controls",
|
|
||||||
"zoom-controls",
|
"zoom-controls",
|
||||||
"new-window-button",
|
"new-window-button",
|
||||||
"privatebrowsing-button",
|
"privatebrowsing-button",
|
||||||
|
@ -381,104 +381,6 @@ const CustomizableWidgets = [{
|
|||||||
};
|
};
|
||||||
CustomizableUI.addListener(listener);
|
CustomizableUI.addListener(listener);
|
||||||
|
|
||||||
return node;
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
id: "edit-controls",
|
|
||||||
name: "Edit Controls",
|
|
||||||
type: "custom",
|
|
||||||
removable: true,
|
|
||||||
defaultArea: CustomizableUI.AREA_PANEL,
|
|
||||||
allowedAreas: [CustomizableUI.AREA_PANEL, CustomizableUI.AREA_NAVBAR],
|
|
||||||
onBuild: function(aDocument) {
|
|
||||||
let inPanel = (this.currentArea == CustomizableUI.AREA_PANEL);
|
|
||||||
let flex = inPanel ? "1" : null;
|
|
||||||
let cls = inPanel ? "panel-combined-button" : "toolbarbutton-1";
|
|
||||||
let buttons = [{
|
|
||||||
id: "cut-button",
|
|
||||||
command: "cmd_cut",
|
|
||||||
flex: flex,
|
|
||||||
class: cls,
|
|
||||||
label: "Cut",
|
|
||||||
tooltiptext: "Cut"
|
|
||||||
}, {
|
|
||||||
id: "copy-button",
|
|
||||||
command: "cmd_copy",
|
|
||||||
flex: flex,
|
|
||||||
class: cls,
|
|
||||||
label: "Copy",
|
|
||||||
tooltiptext: "Copy"
|
|
||||||
}, {
|
|
||||||
id: "paste-button",
|
|
||||||
command: "cmd_paste",
|
|
||||||
flex: flex,
|
|
||||||
class: cls,
|
|
||||||
label: "Paste",
|
|
||||||
tooltiptext: "Paste"
|
|
||||||
}];
|
|
||||||
|
|
||||||
let node = aDocument.createElementNS(kNSXUL, "toolbaritem");
|
|
||||||
node.setAttribute("id", "edit-controls");
|
|
||||||
node.setAttribute("title", "Edit Controls");
|
|
||||||
if (inPanel)
|
|
||||||
node.setAttribute("flex", "1");
|
|
||||||
node.classList.add("chromeclass-toolbar-additional");
|
|
||||||
|
|
||||||
buttons.forEach(function(aButton) {
|
|
||||||
let btnNode = aDocument.createElementNS(kNSXUL, "toolbarbutton");
|
|
||||||
setAttributes(btnNode, aButton);
|
|
||||||
node.appendChild(btnNode);
|
|
||||||
});
|
|
||||||
|
|
||||||
function updateWidgetStyle(aInPanel) {
|
|
||||||
let attrs = {
|
|
||||||
flex: aInPanel ? "1" : null,
|
|
||||||
class: aInPanel ? "panel-combined-button" : "toolbarbutton-1"
|
|
||||||
};
|
|
||||||
for (let i = 0, l = node.childNodes.length; i < l; ++i) {
|
|
||||||
setAttributes(node.childNodes[i], attrs);
|
|
||||||
}
|
|
||||||
if (aInPanel)
|
|
||||||
node.setAttribute("flex", "1");
|
|
||||||
else if (node.hasAttribute("flex"))
|
|
||||||
node.removeAttribute("flex");
|
|
||||||
}
|
|
||||||
|
|
||||||
let listener = {
|
|
||||||
onWidgetAdded: function(aWidgetId, aArea, aPosition) {
|
|
||||||
if (aWidgetId != this.id)
|
|
||||||
return;
|
|
||||||
updateWidgetStyle(aArea == CustomizableUI.AREA_PANEL);
|
|
||||||
}.bind(this),
|
|
||||||
|
|
||||||
onWidgetRemoved: function(aWidgetId, aPrevArea) {
|
|
||||||
if (aWidgetId != this.id)
|
|
||||||
return;
|
|
||||||
// When a widget is demoted to the palette ('removed'), it's visual
|
|
||||||
// style should change.
|
|
||||||
updateWidgetStyle(false);
|
|
||||||
}.bind(this),
|
|
||||||
|
|
||||||
onWidgetReset: function(aWidgetId) {
|
|
||||||
if (aWidgetId != this.id)
|
|
||||||
return;
|
|
||||||
updateWidgetStyle(this.currentArea == CustomizableUI.AREA_PANEL);
|
|
||||||
}.bind(this),
|
|
||||||
|
|
||||||
onWidgetMoved: function(aWidgetId, aArea) {
|
|
||||||
if (aWidgetId != this.id)
|
|
||||||
return;
|
|
||||||
updateWidgetStyle(aArea == CustomizableUI.AREA_PANEL);
|
|
||||||
}.bind(this),
|
|
||||||
|
|
||||||
onWidgetDestroyed: function(aWidgetId) {
|
|
||||||
if (aWidgetId != this.id)
|
|
||||||
return;
|
|
||||||
CustomizableUI.removeListener(listener);
|
|
||||||
}.bind(this)
|
|
||||||
};
|
|
||||||
CustomizableUI.addListener(listener);
|
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
@ -526,6 +526,10 @@ you can use these alternative items. Otherwise, their values should be empty. -
|
|||||||
<!ENTITY newWindowButton.tooltip "Open a new window">
|
<!ENTITY newWindowButton.tooltip "Open a new window">
|
||||||
<!ENTITY sidebarCloseButton.tooltip "Close sidebar">
|
<!ENTITY sidebarCloseButton.tooltip "Close sidebar">
|
||||||
|
|
||||||
|
<!ENTITY cutButton.tooltip "Cut">
|
||||||
|
<!ENTITY copyButton.tooltip "Copy">
|
||||||
|
<!ENTITY pasteButton.tooltip "Paste">
|
||||||
|
|
||||||
<!ENTITY fullScreenButton.tooltip "Display the window in full screen">
|
<!ENTITY fullScreenButton.tooltip "Display the window in full screen">
|
||||||
|
|
||||||
<!ENTITY quitApplicationCmdWin.label "Exit">
|
<!ENTITY quitApplicationCmdWin.label "Exit">
|
||||||
|
@ -683,27 +683,6 @@ toolbar > .customization-target > toolbarpaletteitem > #history-panelmenu {
|
|||||||
-moz-image-region: rect(0px 120px 24px 96px);
|
-moz-image-region: rect(0px 120px 24px 96px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#cut-button {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar") !important;
|
|
||||||
}
|
|
||||||
#cut-button[disabled="true"] {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar&state=disabled") !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#copy-button {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-copy?size=toolbar") !important;
|
|
||||||
}
|
|
||||||
#copy-button[disabled="true"] {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-copy?size=toolbar&state=disabled") !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#paste-button {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-paste?size=toolbar") !important;
|
|
||||||
}
|
|
||||||
#paste-button[disabled="true"] {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-paste?size=toolbar&state=disabled") !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#zoom-out-button {
|
#zoom-out-button {
|
||||||
list-style-image: url("moz-icon://stock/gtk-zoom-out?size=toolbar") !important;
|
list-style-image: url("moz-icon://stock/gtk-zoom-out?size=toolbar") !important;
|
||||||
}
|
}
|
||||||
@ -840,27 +819,6 @@ toolbar[iconsize="small"] #new-window-button {
|
|||||||
-moz-image-region: rect(0px 80px 16px 64px);
|
-moz-image-region: rect(0px 80px 16px 64px);
|
||||||
}
|
}
|
||||||
|
|
||||||
toolbar[iconsize="small"] #cut-button {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-cut?size=menu");
|
|
||||||
}
|
|
||||||
toolbar[iconsize="small"] #cut-button[disabled="true"] {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-cut?size=menu&state=disabled");
|
|
||||||
}
|
|
||||||
|
|
||||||
toolbar[iconsize="small"] #copy-button {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-copy?size=menu");
|
|
||||||
}
|
|
||||||
toolbar[iconsize="small"] #copy-button[disabled="true"] {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-copy?size=menu&state=disabled");
|
|
||||||
}
|
|
||||||
|
|
||||||
toolbar[iconsize="small"] #paste-button {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-paste?size=menu");
|
|
||||||
}
|
|
||||||
toolbar[iconsize="small"] #paste-button[disabled="true"] {
|
|
||||||
list-style-image: url("moz-icon://stock/gtk-paste?size=menu&state=disabled");
|
|
||||||
}
|
|
||||||
|
|
||||||
toolbar[iconsize="small"] #fullscreen-button {
|
toolbar[iconsize="small"] #fullscreen-button {
|
||||||
list-style-image: url("moz-icon://stock/gtk-fullscreen?size=menu");
|
list-style-image: url("moz-icon://stock/gtk-fullscreen?size=menu");
|
||||||
}
|
}
|
||||||
|
@ -7,24 +7,24 @@
|
|||||||
|
|
||||||
%include ../../shared/customizableui/panelUIOverlay.inc.css
|
%include ../../shared/customizableui/panelUIOverlay.inc.css
|
||||||
|
|
||||||
#PanelUI-contents #cut-button {
|
#PanelUI-cut-btn {
|
||||||
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar");
|
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar");
|
||||||
}
|
}
|
||||||
#PanelUI-contents #cut-button[disabled="true"] {
|
#PanelUI-cut-btn[disabled="true"] {
|
||||||
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar&state=disabled");
|
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar&state=disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #copy-button {
|
#PanelUI-copy-btn {
|
||||||
list-style-image: url("moz-icon://stock/gtk-copy?size=toolbar");
|
list-style-image: url("moz-icon://stock/gtk-copy?size=toolbar");
|
||||||
}
|
}
|
||||||
#PanelUI-contents #copy-button[disabled="true"] {
|
#PanelUI-copy-btn[disabled="true"] {
|
||||||
list-style-image: url("moz-icon://stock/gtk-copy?size=toolbar&state=disabled");
|
list-style-image: url("moz-icon://stock/gtk-copy?size=toolbar&state=disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #paste-button {
|
#PanelUI-paste-btn {
|
||||||
list-style-image: url("moz-icon://stock/gtk-paste?size=toolbar");
|
list-style-image: url("moz-icon://stock/gtk-paste?size=toolbar");
|
||||||
}
|
}
|
||||||
#PanelUI-contents #paste-button[disabled="true"] {
|
#PanelUI-paste-btn[disabled="true"] {
|
||||||
list-style-image: url("moz-icon://stock/gtk-paste?size=toolbar&state=disabled");
|
list-style-image: url("moz-icon://stock/gtk-paste?size=toolbar&state=disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -947,73 +947,6 @@ toolbar > .customization-target > toolbarpaletteitem > #history-panelmenu {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* cut button */
|
|
||||||
|
|
||||||
#cut-button {
|
|
||||||
-moz-image-region: rect(0, 260px, 20px, 240px);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-resolution: 2dppx) {
|
|
||||||
#cut-button {
|
|
||||||
-moz-image-region: rect(0, 520px, 40px, 480px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#edit-controls {
|
|
||||||
-moz-box-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* copy button */
|
|
||||||
|
|
||||||
#copy-button {
|
|
||||||
-moz-image-region: rect(0, 280px, 20px, 260px);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-resolution: 2dppx) {
|
|
||||||
#copy-button {
|
|
||||||
-moz-image-region: rect(0, 560px, 40px, 520px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* paste button */
|
|
||||||
|
|
||||||
#paste-button {
|
|
||||||
-moz-image-region: rect(0, 300px, 20px, 280px);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-resolution: 2dppx) {
|
|
||||||
#paste-button {
|
|
||||||
-moz-image-region: rect(0, 600px, 40px, 560px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#cut-button {
|
|
||||||
-moz-margin-end: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#paste-button {
|
|
||||||
-moz-border-start: none;
|
|
||||||
-moz-margin-start: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cut-button:-moz-locale-dir(ltr),
|
|
||||||
#paste-button:-moz-locale-dir(rtl) {
|
|
||||||
border-top-right-radius: 0;
|
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cut-button:-moz-locale-dir(rtl),
|
|
||||||
#paste-button:-moz-locale-dir(ltr) {
|
|
||||||
border-top-left-radius: 0;
|
|
||||||
border-bottom-left-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#copy-button {
|
|
||||||
border-radius: 0;
|
|
||||||
margin-right: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* alltabs button */
|
/* alltabs button */
|
||||||
|
|
||||||
#alltabs-button {
|
#alltabs-button {
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
width: 20px;
|
width: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls toolbarbutton,
|
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton,
|
#PanelUI-contents #zoom-controls toolbarbutton,
|
||||||
.panel-combined-button {
|
.panel-combined-button {
|
||||||
list-style-image: url(chrome://browser/skin/customizableui/menuPanel-small-icons@2x.png);
|
list-style-image: url(chrome://browser/skin/customizableui/menuPanel-small-icons@2x.png);
|
||||||
@ -119,15 +118,15 @@
|
|||||||
-moz-image-region: rect(384px 128px 448px 64px);
|
-moz-image-region: rect(384px 128px 448px 64px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #cut-button {
|
#PanelUI-cut-btn {
|
||||||
-moz-image-region: rect(0 32px 32px 0);
|
-moz-image-region: rect(0 32px 32px 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #copy-button {
|
#PanelUI-copy-btn {
|
||||||
-moz-image-region: rect(0 64px 32px 32px);
|
-moz-image-region: rect(0 64px 32px 32px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #paste-button {
|
#PanelUI-paste-btn {
|
||||||
-moz-image-region: rect(0 96px 32px 64px);
|
-moz-image-region: rect(0 96px 32px 64px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,15 +139,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls toolbarbutton:not(:first-child),
|
#PanelUI-pageControls toolbarbutton:not(:first-child),
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton:not(:first-child) {
|
#PanelUI-contents #zoom-controls toolbarbutton:not(:first-child) {
|
||||||
-moz-margin-start: 0;
|
-moz-margin-start: 0;
|
||||||
}
|
}
|
||||||
#PanelUI-contents #edit-controls toolbarbutton:not(:last-child),
|
#PanelUI-pageControls toolbarbutton:not(:last-child),
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton:not(:last-child) {
|
#PanelUI-contents #zoom-controls toolbarbutton:not(:last-child) {
|
||||||
-moz-margin-end: 0;
|
-moz-margin-end: 0;
|
||||||
}
|
}
|
||||||
#PanelUI-contents #edit-controls toolbarbutton:not(:first-child):not(:last-child),
|
#PanelUI-pageControls toolbarbutton:not(:first-child):not(:last-child),
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton:not(:first-child):not(:last-child) {
|
#PanelUI-contents #zoom-controls toolbarbutton:not(:first-child):not(:last-child) {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
%filter substitution
|
%filter substitution
|
||||||
|
|
||||||
%define primaryToolbarButtons #back-button, #forward-button, #reload-button, #stop-button, #home-button, #print-button, #downloads-button, #downloads-indicator, #bookmarks-menu-button, #new-tab-button, #new-window-button, #cut-button, #copy-button, #paste-button, #fullscreen-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #sync-button, #feed-button, #alltabs-button, #tabview-button, #webrtc-status-button, #social-share-button
|
%define primaryToolbarButtons #back-button, #forward-button, #reload-button, #stop-button, #home-button, #print-button, #downloads-button, #downloads-indicator, #bookmarks-menu-button, #new-tab-button, #new-window-button, #fullscreen-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #sync-button, #feed-button, #alltabs-button, #tabview-button, #webrtc-status-button, #social-share-button
|
||||||
|
@ -52,32 +52,29 @@
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #wrapper-edit-controls,
|
|
||||||
#PanelUI-contents #wrapper-zoom-controls {
|
#PanelUI-contents #wrapper-zoom-controls {
|
||||||
margin-left: -1em;
|
margin-left: -1em;
|
||||||
margin-right: -1em;
|
margin-right: -1em;
|
||||||
width: calc(100% + 2em);
|
width: calc(100% + 2em);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls,
|
#PanelUI-contents #zoom-controls,
|
||||||
#PanelUI-contents #zoom-controls {
|
#PanelUI-pageControls {
|
||||||
padding: 1em 0 0;
|
padding: 1em 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls,
|
|
||||||
#PanelUI-contents #zoom-controls {
|
#PanelUI-contents #zoom-controls {
|
||||||
-moz-margin-start: -1em;
|
-moz-margin-start: -1em;
|
||||||
-moz-box-align: stretch;
|
-moz-box-align: stretch;
|
||||||
width: calc(100% + 2em);
|
width: calc(100% + 2em);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #wrapper-edit-controls #edit-controls,
|
|
||||||
#PanelUI-contents #wrapper-zoom-controls #zoom-controls {
|
#PanelUI-contents #wrapper-zoom-controls #zoom-controls {
|
||||||
-moz-margin-start: 0;
|
-moz-margin-start: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.PanelUI-footer,
|
.PanelUI-footer,
|
||||||
#PanelUI-contents #edit-controls,
|
.PanelUI-editControls,
|
||||||
#PanelUI-contents #zoom-controls,
|
#PanelUI-contents #zoom-controls,
|
||||||
#PanelUI-contents,
|
#PanelUI-contents,
|
||||||
.PanelUI-footer,
|
.PanelUI-footer,
|
||||||
@ -112,7 +109,7 @@ panelview:not([mainview]) .toolbarbutton-text,
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls toolbarbutton > .toolbarbutton-icon,
|
#PanelUI-pageControls toolbarbutton > .toolbarbutton-icon,
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton > .toolbarbutton-icon {
|
#PanelUI-contents #zoom-controls toolbarbutton > .toolbarbutton-icon {
|
||||||
-moz-margin-end: 0;
|
-moz-margin-end: 0;
|
||||||
}
|
}
|
||||||
@ -128,14 +125,12 @@ panelview:not([mainview]) .toolbarbutton-text,
|
|||||||
list-style-image: url(chrome://browser/skin/customizableui/menuPanel-icons.png);
|
list-style-image: url(chrome://browser/skin/customizableui/menuPanel-icons.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls toolbarbutton,
|
#PanelUI-contents #zoom-controls toolbarbutton,
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton {
|
#PanelUI-pageControls toolbarbutton {
|
||||||
-moz-box-orient: horizontal;
|
-moz-box-orient: horizontal;
|
||||||
min-width: 7em;
|
min-width: 7em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#customization-palette #edit-controls toolbarbutton,
|
|
||||||
#PanelUI-contents #edit-controls toolbarbutton,
|
|
||||||
#customization-palette #zoom-controls toolbarbutton,
|
#customization-palette #zoom-controls toolbarbutton,
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton {
|
#PanelUI-contents #zoom-controls toolbarbutton {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
@ -147,14 +142,12 @@ panelview:not([mainview]) .toolbarbutton-text,
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#customization-palette #edit-controls toolbarbutton,
|
|
||||||
#customization-palette #zoom-controls toolbarbutton {
|
#customization-palette #zoom-controls toolbarbutton {
|
||||||
min-width: 1em;
|
min-width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* These smaller icons have different styling between the panel and the toolbar,
|
/* These smaller icons have different styling between the panel and the toolbar,
|
||||||
hence not referencing toolbar.png for these icons. */
|
hence not referencing toolbar.png for these icons. */
|
||||||
#PanelUI-contents #edit-controls toolbarbutton,
|
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton,
|
#PanelUI-contents #zoom-controls toolbarbutton,
|
||||||
.panel-combined-button {
|
.panel-combined-button {
|
||||||
list-style-image: url(chrome://browser/skin/customizableui/menuPanel-small-icons.png);
|
list-style-image: url(chrome://browser/skin/customizableui/menuPanel-small-icons.png);
|
||||||
@ -167,14 +160,13 @@ panelview:not([mainview]) .toolbarbutton-text,
|
|||||||
margin: calc(5em / 12);
|
margin: calc(5em / 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls toolbarbutton > .toolbarbutton-icon,
|
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton > .toolbarbutton-icon {
|
#PanelUI-contents #zoom-controls toolbarbutton > .toolbarbutton-icon {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls #copy-button,
|
.PanelUI-editControls #PanelUI-copy-btn,
|
||||||
#PanelUI-contents #zoom-controls #zoom-reset-button {
|
#PanelUI-contents #zoom-controls #zoom-reset-button {
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
@ -228,7 +220,7 @@ panelview toolbarbutton,
|
|||||||
|
|
||||||
panelview toolbarbutton:not([disabled]):not([checked]):not([open]):not(:active):hover,
|
panelview toolbarbutton:not([disabled]):not([checked]):not([open]):not(:active):hover,
|
||||||
#widget-overflow-list > toolbarbutton:not([disabled]):not([checked]):not([open]):not(:active):hover,
|
#widget-overflow-list > toolbarbutton:not([disabled]):not([checked]):not([open]):not(:active):hover,
|
||||||
#PanelUI-contents #edit-controls toolbarbutton,
|
#PanelUI-pageControls toolbarbutton,
|
||||||
#PanelUI-contents #zoom-controls toolbarbutton,
|
#PanelUI-contents #zoom-controls toolbarbutton,
|
||||||
.customizationmode-button,
|
.customizationmode-button,
|
||||||
#PanelUI-mainView #PanelUI-customize-btn {
|
#PanelUI-mainView #PanelUI-customize-btn {
|
||||||
@ -380,15 +372,15 @@ toolbarbutton.panel-multiview-anchor {
|
|||||||
-moz-image-region: rect(192px 64px 224px 32px);
|
-moz-image-region: rect(192px 64px 224px 32px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #cut-button {
|
#PanelUI-cut-btn {
|
||||||
-moz-image-region: rect(0 16px 16px 0);
|
-moz-image-region: rect(0 16px 16px 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #copy-button {
|
#PanelUI-copy-btn {
|
||||||
-moz-image-region: rect(0 32px 16px 16px);
|
-moz-image-region: rect(0 32px 16px 16px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #paste-button {
|
#PanelUI-paste-btn {
|
||||||
-moz-image-region: rect(0 48px 16px 32px);
|
-moz-image-region: rect(0 48px 16px 32px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -408,22 +400,17 @@ toolbarbutton.panel-multiview-anchor {
|
|||||||
-moz-margin-end: none;
|
-moz-margin-end: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #paste-button,
|
|
||||||
#PanelUI-contents #zoom-in-button {
|
#PanelUI-contents #zoom-in-button {
|
||||||
-moz-border-start: 1px solid;
|
-moz-border-start: 1px solid;
|
||||||
-moz-margin-start: none;
|
-moz-margin-start: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #cut-button:-moz-locale-dir(ltr),
|
|
||||||
#PanelUI-contents #paste-button:-moz-locale-dir(rtl),
|
|
||||||
#PanelUI-contents #zoom-out-button:-moz-locale-dir(ltr),
|
#PanelUI-contents #zoom-out-button:-moz-locale-dir(ltr),
|
||||||
#PanelUI-contents #zoom-in-button:-moz-locale-dir(rtl) {
|
#PanelUI-contents #zoom-in-button:-moz-locale-dir(rtl) {
|
||||||
border-top-right-radius: 2px;
|
border-top-right-radius: 2px;
|
||||||
border-bottom-right-radius: 2px;
|
border-bottom-right-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #cut-button:-moz-locale-dir(rtl),
|
|
||||||
#PanelUI-contents #paste-button:-moz-locale-dir(ltr),
|
|
||||||
#PanelUI-contents #zoom-out-button:-moz-locale-dir(rtl),
|
#PanelUI-contents #zoom-out-button:-moz-locale-dir(rtl),
|
||||||
#PanelUI-contents #zoom-in-button:-moz-locale-dir(ltr) {
|
#PanelUI-contents #zoom-in-button:-moz-locale-dir(ltr) {
|
||||||
border-top-left-radius: 2px;
|
border-top-left-radius: 2px;
|
||||||
|
@ -717,18 +717,6 @@ toolbar > .customization-target > toolbarpaletteitem > #history-panelmenu {
|
|||||||
-moz-image-region: rect(0, 198px, 18px, 180px);
|
-moz-image-region: rect(0, 198px, 18px, 180px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#cut-button {
|
|
||||||
-moz-image-region: rect(0, 216px, 18px, 198px);
|
|
||||||
}
|
|
||||||
|
|
||||||
#copy-button {
|
|
||||||
-moz-image-region: rect(0, 234px, 18px, 216px);
|
|
||||||
}
|
|
||||||
|
|
||||||
#paste-button {
|
|
||||||
-moz-image-region: rect(0, 252px, 18px, 234px);
|
|
||||||
}
|
|
||||||
|
|
||||||
#fullscreen-button {
|
#fullscreen-button {
|
||||||
-moz-image-region: rect(0, 270px, 18px, 252px);
|
-moz-image-region: rect(0, 270px, 18px, 252px);
|
||||||
}
|
}
|
||||||
|
@ -7,17 +7,17 @@
|
|||||||
|
|
||||||
%include ../../shared/customizableui/panelUIOverlay.inc.css
|
%include ../../shared/customizableui/panelUIOverlay.inc.css
|
||||||
|
|
||||||
#PanelUI-contents #edit-controls toolbarbutton {
|
#PanelUI-pageControls toolbarbutton {
|
||||||
list-style-image: url("chrome://browser/skin/Toolbar.png");
|
list-style-image: url("chrome://browser/skin/Toolbar.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
#PanelUI-contents #cut-button {
|
#PanelUI-cut-btn {
|
||||||
-moz-image-region: rect(0, 216px, 18px, 198px);
|
-moz-image-region: rect(0, 216px, 18px, 198px);
|
||||||
}
|
}
|
||||||
#PanelUI-contents #copy-button {
|
#PanelUI-copy-btn {
|
||||||
-moz-image-region: rect(0, 234px, 18px, 216px);
|
-moz-image-region: rect(0, 234px, 18px, 216px);
|
||||||
}
|
}
|
||||||
#PanelUI-contents #paste-button {
|
#PanelUI-paste-btn {
|
||||||
-moz-image-region: rect(0, 252px, 18px, 234px);
|
-moz-image-region: rect(0, 252px, 18px, 234px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user