2022-01-19 13:02:58 +01:00
|
|
|
import * as predefined from "./data";
|
|
|
|
|
|
|
|
export interface ITheme {
|
|
|
|
[key: string]: string | undefined;
|
|
|
|
primarylight: string;
|
|
|
|
primary: string;
|
|
|
|
primarydark: string;
|
|
|
|
successlight: string;
|
|
|
|
success: string;
|
|
|
|
successdark: string;
|
|
|
|
errorlight: string;
|
|
|
|
error: string;
|
|
|
|
errordark: string;
|
|
|
|
secondarylight: string;
|
|
|
|
secondary: string;
|
|
|
|
secondarydark: string;
|
|
|
|
warninglight: string;
|
|
|
|
warning: string;
|
|
|
|
warningdark: string;
|
|
|
|
infolight: string;
|
|
|
|
info: string;
|
|
|
|
infodark: string;
|
|
|
|
welllight: string;
|
|
|
|
well: string;
|
|
|
|
white: string;
|
|
|
|
black: string;
|
|
|
|
hp: string;
|
|
|
|
money: string;
|
|
|
|
hack: string;
|
|
|
|
combat: string;
|
|
|
|
cha: string;
|
|
|
|
int: string;
|
|
|
|
rep: string;
|
|
|
|
disabled: string;
|
|
|
|
backgroundprimary: string;
|
|
|
|
backgroundsecondary: string;
|
|
|
|
button: string;
|
2024-02-16 05:51:07 +01:00
|
|
|
maplocation: string;
|
|
|
|
bnlvl0: string;
|
|
|
|
bnlvl1: string;
|
|
|
|
bnlvl2: string;
|
|
|
|
bnlvl3: string;
|
2022-01-19 13:02:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IPredefinedTheme {
|
|
|
|
colors: ITheme;
|
2022-01-19 17:18:30 +01:00
|
|
|
name: string;
|
|
|
|
credit: string;
|
|
|
|
screenshot: string;
|
|
|
|
description: string;
|
2022-01-19 13:02:58 +01:00
|
|
|
reference?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const defaultTheme: ITheme = {
|
|
|
|
...predefined.Default.colors,
|
|
|
|
};
|
|
|
|
|
2022-10-03 18:12:16 +02:00
|
|
|
export const getPredefinedThemes = (): Record<string, IPredefinedTheme> => ({
|
2022-01-19 13:02:58 +01:00
|
|
|
...predefined,
|
|
|
|
});
|