feat: library list design

This commit is contained in:
Fredrik Burmester
2024-08-25 10:34:54 +02:00
parent 70d0ec4780
commit ec5aab99b8
7 changed files with 443 additions and 110 deletions

View File

@@ -24,6 +24,13 @@ export const DownloadOptions: DownloadOption[] = [
},
];
export type LibraryOptions = {
display: "row" | "list";
cardStyle: "compact" | "detailed";
imageStyle: "poster" | "cover";
showTitles: boolean;
};
type Settings = {
autoRotate?: boolean;
forceLandscapeInVideoPlayer?: boolean;
@@ -36,6 +43,7 @@ type Settings = {
marlinServerUrl?: string;
openInVLC?: boolean;
downloadQuality?: DownloadOption;
libraryOptions: LibraryOptions;
};
/**
@@ -59,6 +67,12 @@ const loadSettings = async (): Promise<Settings> => {
marlinServerUrl: "",
openInVLC: false,
downloadQuality: DownloadOptions[0],
libraryOptions: {
display: "list",
cardStyle: "detailed",
imageStyle: "cover",
showTitles: true,
},
};
try {