-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add multi background color;beautify button style
- Loading branch information
Showing
10 changed files
with
138 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,39 @@ | ||
# Zotero PDF Background Plugin | ||
|
||
![](example1.png) | ||
![](example1.png)![](example2.png)![](example3.png) | ||
|
||
Install by downloading the [latest version](https://github.com/q77190858/zotero-pdf-background/releases/latest) | ||
|
||
## Feature | ||
|
||
* a green pdf background to care your eyes | ||
* a button like a eye on the middle toolbar to switch green mode and original mode | ||
* a multi pdf background to care your eyes | ||
* a button like a eye on the middle toolbar to switch different background mode | ||
|
||
## Todo | ||
|
||
* add more background theme | ||
* beautify button style | ||
* add DIY background color function(Maybe) | ||
|
||
## Contribution | ||
## Install | ||
|
||
- Download zotero-pdf-backgroundv0.0.2.zip | ||
- Open Zotero->tools->plugins->click setting icon on right top->Install Addon from file... | ||
- Select zotero-pdf-backgroundv0.0.2.zip file | ||
- Restart Zotero | ||
|
||
## Build Development Environment | ||
|
||
follow these steps to build a zotero debug environment | ||
|
||
- [ ] Download Zotero 60 (I use a portable edition) | ||
- [ ] Download Firefox 60 (I use a portable edition) | ||
- [ ] Git clone | ||
- [ ] Download and launch [zotero dev edition]([dev builds [Zotero Documentation\]](https://www.zotero.org/support/dev_builds)) with --debugger | ||
- [ ] Download and launch [zotero dev edition](https://www.zotero.org/support/dev_builds) with --debugger | ||
- [ ] Launch Firefox 60 | ||
- [ ] In Firefox, go to devtools, go to settings, click *'Enable browser chrome and add-on debugging toolboxes'* and *'Enable remote debugging'*. | ||
- [ ] In Zotero, go to setting, advanced, config editor, look up "devtools" and set true on "devtools.debugger.remote-enabled" and set "devtools.debugger.remote-port" 6100 | ||
- [ ] In Firefox, click the hamburger menu in the top right -> web developer -> Connect... | ||
- [ ] Enter localhost:6100 | ||
- [ ] Connect | ||
- [ ] Click "Inspect Main Process" | ||
- [ ] Click "Inspect Main Process" | ||
|
||
## Thanks | ||
This plugin's framework is based on [zotero-night](https://github.com/tefkah/zotero-night) |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<em:name>Background for Zotero Pdf Reader</em:name> | ||
<em:description>Background theme for Zotero PDF Reader UI</em:description> | ||
<em:id>[email protected]</em:id> | ||
<em:version>0.0.1</em:version> | ||
<em:version>0.0.2</em:version> | ||
<em:homepageURL>https://github.com/q77190858/zotero-pdf-background</em:homepageURL> | ||
<em:creator>Ju Ju</em:creator> | ||
<em:updateURL>https://github.com/q77190858/zotero-pdf-background/releases/download/release/update.rdf</em:updateURL> | ||
|
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,55 @@ | ||
body.default #viewer.pdfViewer > .page > .textLayer{display:block;} | ||
body.daytime #viewer.pdfViewer > .page > .textLayer{display:block;background-color:rgba(243,243,243,0.5);} | ||
body.nighttime #viewer.pdfViewer > .page > .textLayer{display:block;background-color:rgba(147,147,147,0.5);} | ||
body.careeye #viewer.pdfViewer > .page > .textLayer{display:block;background-color:rgba(155,189,133,0.5);} | ||
body.parchment #viewer.pdfViewer > .page > .textLayer{display:block;background-color:rgba(191,177,125,0.5);} | ||
|
||
.toolbar .toolbarButton.background-color::before { | ||
content: "👁"; | ||
font-size: 14px; | ||
border-radius: 3px; | ||
margin: -2px; | ||
display: inline-block; | ||
vertical-align: top; | ||
position: relative; | ||
z-index: 2; | ||
} | ||
.toolbar .toolbarButton.background-color .dropmarker{ | ||
display: inline-block; | ||
vertical-align: top; | ||
width: 7px; | ||
height: 4px; | ||
position: relative; | ||
z-index: 1; | ||
margin: 6px -1px 0 2px; | ||
background: url(resource://zotero/pdf-reader/images/[email protected]) no-repeat left top/100%; | ||
} | ||
|
||
#toolbarViewerMiddle{ | ||
position: relative; | ||
} | ||
.toolbar #background-selector{ | ||
position:absolute; | ||
right: 4px; | ||
top:93%; | ||
background:#fafafa; | ||
box-shadow:1px 1px 1px #888 | ||
} | ||
.toolbar #background-selector > li{ | ||
list-style:none; | ||
padding: 1px 3px; | ||
} | ||
.toolbar #background-selector > li:hover{ | ||
list-style:none; | ||
padding-top:1px; | ||
padding-bottom:1px; | ||
cursor: pointer; | ||
background-color:skyblue; | ||
} | ||
.toolbar #background-selector > li[select="true"]{ | ||
list-style:none; | ||
padding-top:1px; | ||
padding-bottom:1px; | ||
cursor: pointer; | ||
background-color:dodgerblue; | ||
} |
Binary file not shown.
Binary file not shown.