diff --git a/chrome/content/zotero/integration/insertNoteDialog.xhtml b/chrome/content/zotero/integration/insertNoteDialog.xhtml
index 6afb798378..6855b1b8f7 100644
--- a/chrome/content/zotero/integration/insertNoteDialog.xhtml
+++ b/chrome/content/zotero/integration/insertNoteDialog.xhtml
@@ -42,7 +42,7 @@
persist="screenX screenY"
onkeypress="Zotero_QuickFormat.onWindowKeyPress(event)"
onunload="Zotero_QuickFormat.onUnload()"
- drawintitlebar-platforms="linux,win"
+ drawintitlebar-platforms="win,mac"
no-titlebar-icon="true">
diff --git a/chrome/content/zotero/integration/progressBar.js b/chrome/content/zotero/integration/progressBar.js
index 75aca8566a..b423abd8bd 100644
--- a/chrome/content/zotero/integration/progressBar.js
+++ b/chrome/content/zotero/integration/progressBar.js
@@ -23,6 +23,8 @@
***** END LICENSE BLOCK *****
*/
+Services.scriptloader.loadSubScript("chrome://zotero/content/titlebar.js", this);
+
var Zotero_ProgressBar = new function () {
var initialized, io;
@@ -40,13 +42,6 @@ var Zotero_ProgressBar = new function () {
if (io.isNote) {
document.documentElement.classList.add('note-dialog');
}
-
- // Only hide chrome on Windows or Mac
- if(Zotero.isMac) {
- document.documentElement.setAttribute("drawintitlebar", true);
- } else if(Zotero.isWin) {
- document.documentElement.setAttribute("chromemargin", '0,0,15,0');
- }
}
};
diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js
index 1d8374f097..1f41648f5b 100644
--- a/chrome/content/zotero/integration/quickFormat.js
+++ b/chrome/content/zotero/integration/quickFormat.js
@@ -23,7 +23,7 @@
***** END LICENSE BLOCK *****
*/
Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js", this);
-
+Services.scriptloader.loadSubScript("chrome://zotero/content/titlebar.js", this);
var Zotero_QuickFormat = new function () {
const pixelRe = /^([0-9]+)px$/
const specifiedLocatorRe = /^(?:,? *(p{1,2})(?:\. *| *)|:)([0-9\-–]+) *$/;
@@ -66,10 +66,6 @@ var Zotero_QuickFormat = new function () {
document.getElementById('classic-view').hidden = true;
}
- // Only hide chrome on Windows or Mac
- if(Zotero.isMac) {
- document.documentElement.setAttribute("drawintitlebar", true);
- }
// Hide chrome on linux
if (Zotero.isLinux) {
document.documentElement.setAttribute("hidechrome", true);
@@ -1315,10 +1311,6 @@ var Zotero_QuickFormat = new function () {
// Need to wait a moment for the css change above to take effect (mainly for mac)
await Zotero.Promise.delay(5);
window.resizeTo(width, height);
- if (Zotero.isMac && Zotero.platformMajorVersion >= 60) {
- document.children[0].setAttribute('drawintitlebar', 'false');
- document.children[0].setAttribute('drawintitlebar', 'true');
- }
// Make sure the window's width cannot be changed by dragging the edge of the window
document.documentElement.style.maxHeight = height + "px";
document.documentElement.style.minHeight = height + "px";
diff --git a/chrome/content/zotero/integration/quickFormat.xhtml b/chrome/content/zotero/integration/quickFormat.xhtml
index 9070fc7213..889d49326c 100644
--- a/chrome/content/zotero/integration/quickFormat.xhtml
+++ b/chrome/content/zotero/integration/quickFormat.xhtml
@@ -42,7 +42,7 @@
persist="screenX screenY"
onkeypress="Zotero_QuickFormat.onWindowKeyPress(event)"
onunload="Zotero_QuickFormat.onUnload()"
- drawintitlebar-platforms="linux,win"
+ drawintitlebar-platforms="win,mac"
no-titlebar-icon="true"
style="width: 800px;">
diff --git a/chrome/content/zotero/selectItemsDialog.xhtml b/chrome/content/zotero/selectItemsDialog.xhtml
index 0447c7e10e..f88ceb8d30 100644
--- a/chrome/content/zotero/selectItemsDialog.xhtml
+++ b/chrome/content/zotero/selectItemsDialog.xhtml
@@ -40,7 +40,7 @@
onunload="doUnload();"
persist="screenX screenY width height"
class="zotero-dialog"
- drawintitlebar="true"
+ drawintitlebar-platforms="mac,win"
>