dark mode PDF filter init (#5994)

Co-authored-by: a <a>
This commit is contained in:
Anthony Stirling
2026-03-25 15:38:42 +00:00
committed by GitHub
co-authored by a <a>
parent 28613caf8a
commit bb43e9dcdf
7 changed files with 108 additions and 53 deletions
@@ -3,6 +3,8 @@ import { type ThemeMode, getSystemTheme } from '@app/constants/theme';
export type LogoVariant = 'modern' | 'classic';
export type PdfRenderMode = 'normal' | 'dark' | 'sepia';
export interface UserPreferences {
autoUnzip: boolean;
autoUnzipFileLimit: number;
@@ -17,6 +19,7 @@ export interface UserPreferences {
hideUnavailableTools: boolean;
hideUnavailableConversions: boolean;
logoVariant: LogoVariant | null;
pdfRenderMode: PdfRenderMode;
}
export const DEFAULT_PREFERENCES: UserPreferences = {
@@ -33,6 +36,7 @@ export const DEFAULT_PREFERENCES: UserPreferences = {
hideUnavailableTools: false,
hideUnavailableConversions: false,
logoVariant: null,
pdfRenderMode: 'normal',
};
const STORAGE_KEY = 'stirlingpdf_preferences';