mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
Merge remote-tracking branch 'origin/master' into custom
This commit is contained in:
commit
924da4a2cc
559 changed files with 9029 additions and 12082 deletions
|
|
@ -106,7 +106,7 @@ toolbar[printpreview="true"] {
|
|||
-moz-box-ordinal-group: 10;
|
||||
}
|
||||
|
||||
%ifdef CAN_DRAW_IN_TITLEBAR
|
||||
%ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
#main-window[inFullscreen] > #titlebar,
|
||||
#main-window[inFullscreen] .titlebar-placeholder,
|
||||
#main-window:not([tabsintitlebar]) .titlebar-placeholder {
|
||||
|
|
@ -222,7 +222,7 @@ splitmenu {
|
|||
}
|
||||
|
||||
%ifdef MENUBAR_CAN_AUTOHIDE
|
||||
%ifndef CAN_DRAW_IN_TITLEBAR
|
||||
%ifndef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
#appmenu-toolbar-button > .toolbarbutton-text {
|
||||
display: -moz-box;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4706,7 +4706,7 @@ var TabsOnTop = {
|
|||
|
||||
var TabsInTitlebar = {
|
||||
init: function() {
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
this._readPref();
|
||||
Services.prefs.addObserver(this._prefName, this, false);
|
||||
|
||||
|
|
@ -4719,7 +4719,7 @@ var TabsInTitlebar = {
|
|||
},
|
||||
|
||||
allowedBy: function(condition, allow) {
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
if (allow) {
|
||||
if (condition in this._disallowed) {
|
||||
delete this._disallowed[condition];
|
||||
|
|
@ -4738,7 +4738,7 @@ var TabsInTitlebar = {
|
|||
return document.documentElement.getAttribute("tabsintitlebar") == "true";
|
||||
},
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
observe: function(subject, topic, data) {
|
||||
if (topic == "nsPref:changed")
|
||||
this._readPref();
|
||||
|
|
@ -4812,7 +4812,7 @@ var TabsInTitlebar = {
|
|||
#endif
|
||||
|
||||
uninit: function() {
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
this._initialized = false;
|
||||
Services.prefs.removeObserver(this._prefName, this);
|
||||
#endif
|
||||
|
|
@ -4826,7 +4826,7 @@ function updateAppButtonDisplay() {
|
|||
window.menubar.visible &&
|
||||
document.getElementById("toolbar-menubar").getAttribute("autohide") == "true";
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
document.getElementById("titlebar").hidden = !displayAppButton;
|
||||
|
||||
if (displayAppButton)
|
||||
|
|
@ -4842,7 +4842,7 @@ function updateAppButtonDisplay() {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
function onTitlebarMaxClick() {
|
||||
if (window.windowState == window.STATE_MAXIMIZED)
|
||||
window.restore();
|
||||
|
|
@ -6955,7 +6955,7 @@ var gPrivateBrowsingUI = {
|
|||
document.getElementById("Tools:Sanitize").setAttribute("disabled", "true");
|
||||
|
||||
if (window.location.href == getBrowserURL()) {
|
||||
#ifdef XP_MACOSX
|
||||
#if defined(XP_MACOSX) && defined(MOZ_CAN_DRAW_IN_TITLEBAR)
|
||||
if (!PrivateBrowsingUtils.permanentPrivateBrowsing) {
|
||||
document.documentElement.setAttribute("drawintitlebar", true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@
|
|||
|
||||
</popupset>
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
<vbox id="titlebar">
|
||||
<hbox id="titlebar-content">
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
|
|
@ -374,7 +374,7 @@
|
|||
#include browser-menubar.inc
|
||||
</toolbaritem>
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
<hbox class="titlebar-placeholder" type="appmenu-button" ordinal="0"/>
|
||||
<hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000"/>
|
||||
#endif
|
||||
|
|
@ -771,7 +771,7 @@
|
|||
</toolbar>
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
#ifndef CAN_DRAW_IN_TITLEBAR
|
||||
#ifndef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
#define APPMENU_ON_TABBAR
|
||||
#endif
|
||||
#endif
|
||||
|
|
@ -838,7 +838,7 @@
|
|||
label="&closeTab.label;"
|
||||
tooltiptext="&closeTab.label;"/>
|
||||
|
||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||
#ifdef MOZ_CAN_DRAW_IN_TITLEBAR
|
||||
<hbox class="titlebar-placeholder" type="appmenu-button" ordinal="0"/>
|
||||
<hbox class="titlebar-placeholder" type="caption-buttons" ordinal="1000"/>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue