Files
BetterSEQTA-Plus/src/types/CustomThemes.ts
T
2024-10-05 20:17:31 +10:00

41 lines
774 B
TypeScript

export type CustomTheme = {
id: string;
name: string;
description: string;
defaultColour: string;
CanChangeColour: boolean;
allowBackgrounds: boolean;
CustomCSS: string;
CustomImages: CustomImage[];
coverImage: Blob | null;
isEditable: boolean;
hideThemeName: boolean;
webURL?: string;
selectedColor?: string;
forceDark?: boolean;
}
export type LoadedCustomTheme = CustomTheme & {
CustomImages: {
id: string;
blob: Blob;
variableName: string;
url: string | null;
}[];
coverImageUrl?: string;
};
export type DownloadedTheme = CustomTheme & {
webURL: string;
}
export type CustomImage = {
id: string;
blob: Blob;
variableName: string;
}
export type ThemeList = {
themes: CustomTheme[];
selectedTheme: string;
}