-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:Adapted to System Dark Mode; feat:Adapted to Split View Mode;
- Loading branch information
Showing
19 changed files
with
315 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
var PDFBackground; | ||
|
||
function log(msg) { | ||
Zotero.debug("zotero-pdf-bakcground: " + msg); | ||
} | ||
|
||
function install() { | ||
log("plugin Installed"); | ||
} | ||
|
||
async function startup({ id, version, rootURI }) { | ||
log("plugin start up"); | ||
|
||
Zotero.PreferencePanes.register({ | ||
pluginID: 'zotero-pdf-bakcground@example.com', | ||
src: rootURI + 'preferences.xhtml', | ||
scripts: [rootURI + 'preferences.js'] | ||
}); | ||
|
||
Services.scriptloader.loadSubScript(rootURI + 'zotero-pdf-bakcground.js'); | ||
PDFBackground.init({ id, version, rootURI }); | ||
await PDFBackground.main(); | ||
} | ||
|
||
function onMainWindowLoad({ window }) { | ||
log("Zotero main window load") | ||
} | ||
|
||
function onMainWindowUnload({ window }) { | ||
log("Zotero main window unload") | ||
} | ||
|
||
function shutdown() { | ||
log("plugin Shutting down"); | ||
PDFBackground?.removeAllStyle(); | ||
PDFBackground = undefined; | ||
} | ||
|
||
function uninstall() { | ||
log("plugin Uninstalled"); | ||
PDFBackground?.removeAllStyle(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
zotero-pdf-background = | ||
.label = zotero-pdf-background |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "Zotero PDF Background", | ||
"version": "2.0", | ||
"description": "Change PDF background color to care for eyes", | ||
"homepage_url": "https://github.com/q77190858/zotero-pdf-background", | ||
"applications": { | ||
"zotero": { | ||
"id": "zotero-pdf-background@example.com", | ||
"update_url": "https://zotero-download.s3.amazonaws.com/tmp/zotero-pdf-background/updates-2.0.json", | ||
"strict_min_version": "6.999", | ||
"strict_max_version": "7.0.*" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pref("extensions.zotero-pdf-bakcground.defaultBackground","careeye"); |
Oops, something went wrong.