feat: implement random book background feature in ClientLayout, allowing dynamic background images from selected Komga libraries

This commit is contained in:
Julien Froidefond
2025-10-18 22:37:59 +02:00
parent 0806487fe7
commit e923343f08
6 changed files with 279 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
export type BackgroundType = "default" | "gradient" | "image";
export type BackgroundType = "default" | "gradient" | "image" | "komga-random";
export interface BackgroundPreferences {
type: BackgroundType;
@@ -6,6 +6,7 @@ export interface BackgroundPreferences {
imageUrl?: string;
opacity?: number; // 0-100
blur?: number; // 0-20 (px)
komgaLibraries?: string[]; // IDs des bibliothèques Komga sélectionnées
}
export interface UserPreferences {