WIP: Checkpoint for global and individual book settings
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user