Remove font from themes

This commit is contained in:
aditya.chandel
2025-01-16 00:31:39 -07:00
parent 50dd24e9f2
commit 3ced7472e9
2 changed files with 8 additions and 7 deletions
@@ -122,6 +122,7 @@ export class BookService {
const url = `/pdf-viewer/book/${book.id}`; const url = `/pdf-viewer/book/${book.id}`;
window.open(url, '_blank'); window.open(url, '_blank');
this.updateLastReadTime(book.id).subscribe({ this.updateLastReadTime(book.id).subscribe({
next: () => {},
error: err => console.error('Failed to update last read time', err), error: err => console.error('Failed to update last read time', err),
}); });
} else if (book.bookType === "EPUB") { } else if (book.bookType === "EPUB") {
@@ -220,7 +220,7 @@ export class EpubViewerComponent implements OnInit, OnDestroy {
themesMap = new Map<string, any>([ themesMap = new Map<string, any>([
[ [
'black', { 'black', {
"body": {"background-color": "#000000", "color": "#f9f9f9", "font-family": "Arial, sans-serif"}, "body": {"background-color": "#000000", "color": "#f9f9f9"},
"p": {"color": "#f9f9f9"}, "p": {"color": "#f9f9f9"},
"h1, h2, h3, h4, h5, h6": {"color": "#f9f9f9"}, "h1, h2, h3, h4, h5, h6": {"color": "#f9f9f9"},
"a": {"color": "#f9f9f9"}, "a": {"color": "#f9f9f9"},
@@ -233,7 +233,7 @@ export class EpubViewerComponent implements OnInit, OnDestroy {
], ],
[ [
'sepia', { 'sepia', {
"body": {"background-color": "#f4ecd8", "color": "#6e4b3a", "font-family": "Georgia, serif"}, "body": {"background-color": "#f4ecd8", "color": "#6e4b3a"},
"p": {"color": "#6e4b3a"}, "p": {"color": "#6e4b3a"},
"h1, h2, h3, h4, h5, h6": {"color": "#6e4b3a"}, "h1, h2, h3, h4, h5, h6": {"color": "#6e4b3a"},
"a": {"color": "#8b4513"}, "a": {"color": "#8b4513"},
@@ -246,10 +246,10 @@ export class EpubViewerComponent implements OnInit, OnDestroy {
], ],
[ [
'white', { 'white', {
"body": {"background-color": "white", "color": "black", "font-family": "Arial, sans-serif"}, "body": {"background-color": "#ffffff", "color": "#000000"},
"p": {"color": "black"}, "p": {"color": "#000000"},
"h1, h2, h3, h4, h5, h6": {"color": "black"}, "h1, h2, h3, h4, h5, h6": {"color": "#000000"},
"a": {"color": "#1e90ff"}, "a": {"color": "#000000"},
"img": { "img": {
"-webkit-filter": "none", "-webkit-filter": "none",
"filter": "none" "filter": "none"
@@ -259,7 +259,7 @@ export class EpubViewerComponent implements OnInit, OnDestroy {
], ],
[ [
'grey', { 'grey', {
"body": {"background-color": "#404040", "color": "#d3d3d3", "font-family": "Arial, sans-serif"}, "body": {"background-color": "#404040", "color": "#d3d3d3"},
"p": {"color": "#d3d3d3"}, "p": {"color": "#d3d3d3"},
"h1, h2, h3, h4, h5, h6": {"color": "#d3d3d3"}, "h1, h2, h3, h4, h5, h6": {"color": "#d3d3d3"},
"a": {"color": "#1e90ff"}, "a": {"color": "#1e90ff"},