mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-10-23 02:03:14 +02:00
56 lines
1.1 KiB
TypeScript
56 lines
1.1 KiB
TypeScript
|
import { IMap } from "../types";
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
export interface IPredefinedTheme {
|
||
|
colors: ITheme;
|
||
|
name?: string;
|
||
|
credit?: string;
|
||
|
description?: string;
|
||
|
reference?: string;
|
||
|
}
|
||
|
|
||
|
export const defaultTheme: ITheme = {
|
||
|
...predefined.Default.colors,
|
||
|
};
|
||
|
|
||
|
export const getPredefinedThemes = (): IMap<IPredefinedTheme> => ({
|
||
|
...predefined,
|
||
|
});
|