Improve EPUB Reader: UI Enhancements (Line Height, Letter Spacing, Flow, Fonts)

This commit is contained in:
aditya.chandel
2025-06-25 01:10:16 -06:00
committed by Aditya Chandel
parent fc328a7711
commit df5ebbe7c4
27 changed files with 767 additions and 499 deletions
+12
View File
@@ -19,6 +19,11 @@ import {initializeAuthFactory} from './app/auth-initializer';
bootstrapApplication(AppComponent, {
providers: [
{
provide: APP_INITIALIZER,
useFactory: themeInitializer,
multi: true
},
{
provide: APP_INITIALIZER,
useFactory: websocketInitializer,
@@ -52,3 +57,10 @@ bootstrapApplication(AppComponent, {
})
]
}).catch(err => console.error(err));
export function themeInitializer(): () => void {
return () => {
document.documentElement.classList.add('p-dark');
document.body.classList.add('p-dark');
};
}