mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
42 lines
896 B
TypeScript
42 lines
896 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;
|
|
/** CSS custom property names (e.g. `--my-accent`) that receive the same value as `--better-main` when adaptive colours apply. */
|
|
adaptiveCssVariables?: string[];
|
|
};
|
|
|
|
export type LoadedCustomTheme = CustomTheme & {
|
|
CustomImages: {
|
|
id: string;
|
|
blob: Blob;
|
|
variableName: string;
|
|
}[];
|
|
};
|
|
|
|
export type DownloadedTheme = CustomTheme & {
|
|
webURL: string;
|
|
};
|
|
|
|
export type CustomImage = {
|
|
id: string;
|
|
blob: Blob;
|
|
variableName: string;
|
|
};
|
|
|
|
export type ThemeList = {
|
|
themes: CustomTheme[];
|
|
selectedTheme: string;
|
|
};
|