-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
82 lines (74 loc) · 1.84 KB
/
types.ts
File metadata and controls
82 lines (74 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export type ThemeShape = 'Round' | 'Sharp';
export type CounterStyle =
| 'Counter-Minimal-Right-Icon'
| 'Counter-Minimal-Right'
| 'Counter-Right-Icon'
| 'Counter-Right'
| 'Counter-Minimal-Left-Icon'
| 'Counter-Minimal-Left'
| 'Counter-Left-Icon'
| 'Counter-Left'
| 'Counter-Vartiou'
| 'None';
export type LoginVariant = 'Unova' | 'Allstars' | 'Default';
export type IconPackId = 'default' | 'rounded' | 'square' | 'rounded-outline' | 'square-outline';
export interface IconPack {
id: IconPackId;
name: string;
description?: string;
upstreamFolder: string;
atlasPath: string;
}
export interface ColorTheme {
id: string;
name: string;
description?: string;
hex: string; // main-color (accent)
sub: string; // sub-color (background)
textOnMain: string; // font-main-color (text color when on top of main accent)
textOnSub: string; // font-sub-color (text color when on top of sub background)
hpHigh: string; // hp-high-color
xp: string; // xp-color
friendship: string; // friendship-color
glow: string;
previewImage: string;
isCustom?: boolean;
}
export interface CursorSet {
id: string;
name: string;
file: string;
isModern: boolean;
isDark: boolean;
sprite: {
x: number;
y: number;
w: number;
h: number;
hotX: number;
hotY: number;
};
}
export interface BubbleSet {
id: string;
name: string;
textColor: string;
isCustom?: boolean;
}
export interface AppState {
activeTheme: ColorTheme;
activeShape: ThemeShape;
activeCursorSet: string;
activeBubbleSet: string;
activeCounterStyle: CounterStyle;
activeLoginVariant: LoginVariant;
activeIconPack: IconPackId;
archetypeInfo?: {
branch?: string;
commit: string;
time: string;
repoUrl: string;
loading?: boolean;
error?: boolean;
};
}