WIP: Checkpoint for global and individual book settings

This commit is contained in:
aditya.chandel
2025-01-17 16:03:40 -07:00
parent f75f005347
commit 5937574eb8
25 changed files with 384 additions and 299 deletions
@@ -80,7 +80,7 @@ export class SettingsComponent implements OnInit {
if (settings.epub) {
const epubSettings = settings.epub;
this.selectedTheme = this.themes.find(t => t.key === epubSettings.theme)?.key;
this.fontSize = parseInt(epubSettings.fontSize, 10);
this.fontSize = epubSettings.fontSize;
this.selectedFont = this.fonts.find(f => f.key === epubSettings.font)?.key;
}
}
@@ -1,13 +1,15 @@
export interface EpubSettings {
theme: string;
fontSize: string;
fontSize: number;
font: string;
page: string;
}
export interface PdfSettings {
spread: 'off' | 'even' | 'odd';
zoom: string;
sidebar: boolean;
page: number;
}
export interface AppSettings {