Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
Added more color schemes to ePubViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Jul 25, 2017
1 parent 5434456 commit 4d9cf6d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
6 changes: 6 additions & 0 deletions static/reader/epub/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
<option value="OpenSans" selected>Open Sans</option>
<option value="ArbutusSlab">Arbutus Slab</option>
<option value="DroidSerif">Droid Serif</option>
<option value="SourceCodePro">Source Code Pro</option>
<option value="SourceSansPro">Source Sans Pro</option>
</select>
</div>
<div class="control">
Expand All @@ -105,6 +107,10 @@
<option value="SepiaDark">Sepia Dark</option>
<option value="White" selected>White</option>
<option value="Black">Black</option>
<option value="Gray" selected>Gray</option>
<option value="Dark">Dark</option>
<option value="SolarizedLight">Solarized Light</option>
<option value="SolarizedDark">Solarized Dark</option>
</select>
</div>
<div class="control">
Expand Down
28 changes: 26 additions & 2 deletions static/reader/epub/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,23 @@ ePubViewer.themes = {
"Black": {
"background-color": "#000000",
"color": "#FFFFFF"
}
},
"Gray": {
"background-color": "#333333",
"color": "#EEEEEE"
},
"Dark": {
"background-color": "#262c2e",
"color": "#f0f2f3"
},
"SolarizedLight": {
"background-color": "#fdf6e3",
"color": "#657b83"
},
"SolarizedDark": {
"color": "#839496",
"background-color": "#002b36"
},
};
ePubViewer.fonts = {
"ArbutusSlab": {
Expand All @@ -43,8 +59,16 @@ ePubViewer.fonts = {
"OpenSans": {
"link": "https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i",
"font-family": "'Open Sans', Ubuntu, Trebuchet, sans-serif"
},
"SourceCodePro": {
"link": "https://fonts.googleapis.com/css?family=Source+Code+Pro:200,300,400,500,600,700,900",
"font-family": "'Source Code Pro', 'Open Sans', sans-serif"
},
"SourceSansPro": {
"link": "https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese",
"font-family": "'Source Sans Pro', sans-serif"
}
}
};
ePubViewer.settings = {
"theme": "White",
"font": "OpenSans",
Expand Down

0 comments on commit 4d9cf6d

Please sign in to comment.