diff --git a/bootstrap.js b/bootstrap.js index 25e7335..e40ae76 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -7,6 +7,7 @@ var Zotero_File_Exporter; var Zotero_File_Interface; var ZoteroPane_Local; var Zotero_File_Interface; +var FilePicker; var fflate; var ZeNotes; var setImmediate = function(){}; @@ -253,6 +254,7 @@ async function startup({ id, version, resourceURI, rootURI = resourceURI.spec }) Services.scriptloader.loadSubScript(rootURI + 'lib/fflate/index.js'); Services.scriptloader.loadSubScript(rootURI + 'lib/CryptoJS 3.1.2/aes.js'); + Services.scriptloader.loadSubScript(rootURI + 'core/filepicker6.js'); Services.scriptloader.loadSubScript(rootURI + 'core/settings.js'); Services.scriptloader.loadSubScript(rootURI + 'core/dropbox.js'); Services.scriptloader.loadSubScript(rootURI + 'core/zenotes.js'); @@ -282,6 +284,7 @@ async function startup({ id, version, resourceURI, rootURI = resourceURI.spec }) Zotero_File_Interface = Zotero.getMainWindow().Zotero_File_Interface; ZoteroPane_Local = Zotero.getMainWindow().ZoteroPane_Local; Zotero_File_Interface = Zotero.getMainWindow().Zotero_File_Interface; + FilePicker = Zotero.getMainWindow().FilePicker; Menu.addToAllWindows(); ZeNotes.Prefs = Prefs; ZeNotes.Database = Database; diff --git a/content/settings/preferences.js b/content/settings/preferences.js index ba36a4b..5eef009 100644 --- a/content/settings/preferences.js +++ b/content/settings/preferences.js @@ -588,7 +588,7 @@ Zotero_Preferences.ZeNotes = { var isdark = Zotero.Prefs.get('general.theme')=="dark" || window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches; if (isdark) { - var filename = "chrome://ze-notes/content/settings/preferences-dark.css"; + var filename = "chrome://zenotes/content/settings/preferences-dark.css"; var pi = document.createProcessingInstruction( 'xml-stylesheet', `type="text/css" href="${filename}"` diff --git a/content/settings/preferences.xul b/content/settings/preferences.xul index c2f5dc9..a58c19e 100644 --- a/content/settings/preferences.xul +++ b/content/settings/preferences.xul @@ -18,7 +18,7 @@ - - - - - - - - - + + + + + + + +