174 lines
6.2 KiB
HTML
174 lines
6.2 KiB
HTML
<div class="main-container enclosing-container">
|
|
<div class="settings-header">
|
|
<h2 class="settings-title">
|
|
<i class="pi pi-book"></i>
|
|
Reader Preferences
|
|
</h2>
|
|
<p class="settings-description">
|
|
Configure reader settings scope and customize reading experience for different book formats including PDF, EPUB, and CBX files.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="settings-content">
|
|
<div class="preferences-section">
|
|
<div class="section-header">
|
|
<h3 class="section-title">
|
|
<i class="pi pi-cog"></i>
|
|
Reader Settings Scope
|
|
</h3>
|
|
<p class="section-description">
|
|
Select whether to apply the same reader settings (font, theme, spread, zoom, etc.) globally for all books or individually per book.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="settings-card">
|
|
<div class="setting-item">
|
|
<div class="setting-info">
|
|
<div class="setting-label-row">
|
|
<label class="setting-label">PDF Reader Settings</label>
|
|
<div class="button-group">
|
|
@for (item of scopeOptions; track item) {
|
|
<button
|
|
type="button"
|
|
class="option-button"
|
|
[class.selected]="selectedPdfScope === item.key"
|
|
(click)="selectedPdfScope = item.key; onPdfScopeChange()"
|
|
[pTooltip]="item.name"
|
|
tooltipPosition="bottom">
|
|
<i [class]="item.icon"></i>
|
|
<span class="option-text">{{ item.name }}</span>
|
|
</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
<p class="setting-description">
|
|
Choose how PDF reader settings are applied across your library.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting-item">
|
|
<div class="setting-info">
|
|
<div class="setting-label-row">
|
|
<label class="setting-label">EPUB Reader Settings</label>
|
|
<div class="button-group">
|
|
@for (item of scopeOptions; track item) {
|
|
<button
|
|
type="button"
|
|
class="option-button"
|
|
[class.selected]="selectedEpubScope === item.key"
|
|
(click)="selectedEpubScope = item.key; onEpubScopeChange()"
|
|
[pTooltip]="item.name"
|
|
tooltipPosition="bottom">
|
|
<i [class]="item.icon"></i>
|
|
<span class="option-text">{{ item.name }}</span>
|
|
</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
<p class="setting-description">
|
|
Choose how EPUB reader settings are applied across your library.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting-item">
|
|
<div class="setting-info">
|
|
<div class="setting-label-row">
|
|
<label class="setting-label">CBX Reader Settings</label>
|
|
<div class="button-group">
|
|
@for (item of scopeOptions; track item) {
|
|
<button
|
|
type="button"
|
|
class="option-button"
|
|
[class.selected]="selectedCbxScope === item.key"
|
|
(click)="selectedCbxScope = item.key; onCbxScopeChange()"
|
|
[pTooltip]="item.name"
|
|
tooltipPosition="bottom">
|
|
<i [class]="item.icon"></i>
|
|
<span class="option-text">{{ item.name }}</span>
|
|
</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
<p class="setting-description">
|
|
Choose how CBX (comic book) reader settings are applied across your library.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="preferences-section">
|
|
<div class="section-header">
|
|
<h3 class="section-title">
|
|
<i class="pi pi-book"></i>
|
|
EPUB Preferences: Global
|
|
</h3>
|
|
<p class="section-description">
|
|
Set default reading options that will apply to all EPUB books in your library, including font, theme, text flow, and layout preferences.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="settings-card">
|
|
<app-epub-reader-preferences-component
|
|
[userSettings]="userSettings">
|
|
</app-epub-reader-preferences-component>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="preferences-section">
|
|
<div class="section-header">
|
|
<h3 class="section-title">
|
|
<i class="pi pi-file-pdf"></i>
|
|
PDF Preferences: Global
|
|
</h3>
|
|
<p class="section-description">
|
|
Set default reading options that apply to all PDF books in your library, including zoom level, page layout, and navigation behavior.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="settings-card">
|
|
<app-pdf-reader-preferences-component
|
|
[userSettings]="userSettings">
|
|
</app-pdf-reader-preferences-component>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="preferences-section">
|
|
<div class="section-header">
|
|
<h3 class="section-title">
|
|
<i class="pi pi-images"></i>
|
|
CBX Preferences: Global
|
|
</h3>
|
|
<p class="section-description">
|
|
Configure default reading settings for all comic books in your library, including page layout, reading direction, and image scaling.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="settings-card">
|
|
<app-cbx-reader-preferences-component
|
|
[userSettings]="userSettings">
|
|
</app-cbx-reader-preferences-component>
|
|
</div>
|
|
</div>
|
|
|
|
@if (hasFontManagementPermission) {
|
|
<div class="preferences-section">
|
|
<div class="section-header">
|
|
<h3 class="section-title">
|
|
<i class="pi pi-palette"></i>
|
|
Custom Fonts Management
|
|
</h3>
|
|
<p class="section-description">
|
|
Upload and manage up to 10 custom fonts for a personalized reading experience in the EPUB reader. Each font can then be selected in the EPUB reader settings.
|
|
</p>
|
|
</div>
|
|
<div class="settings-card">
|
|
<app-custom-fonts></app-custom-fonts>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|