|
1 | 1 | import ReactDOM from "react-dom/client" |
2 | 2 | import { ThemeProvider } from "@/ui/ThemeContext" |
3 | | -import { Theme } from "@/ui/helpers/UseThemeHelpers" |
4 | 3 | import Synthesis from "./Synthesis" |
5 | 4 | import "./index.css" |
6 | 5 | import APS from "./aps/APS" |
7 | | - |
8 | | -const initialThemeName = "Default" |
9 | | -const defaultColors: Theme = { |
10 | | - InteractiveElementSolid: { |
11 | | - color: { r: 250, g: 162, b: 27, a: 1 }, |
12 | | - above: [], |
13 | | - }, |
14 | | - InteractiveElementLeft: { |
15 | | - color: { r: 207, g: 114, b: 57, a: 1 }, |
16 | | - above: ["Background", "BackgroundSecondary"], |
17 | | - }, |
18 | | - InteractiveElementRight: { |
19 | | - color: { r: 212, g: 75, b: 62, a: 1 }, |
20 | | - above: ["Background", "BackgroundSecondary"], |
21 | | - }, |
22 | | - Background: { color: { r: 0, g: 0, b: 0, a: 1 }, above: [] }, |
23 | | - BackgroundSecondary: { color: { r: 18, g: 18, b: 18, a: 1 }, above: [] }, |
24 | | - InteractiveBackground: { color: { r: 40, g: 44, b: 47, a: 1 }, above: [] }, |
25 | | - MainText: { |
26 | | - color: { r: 255, g: 255, b: 255, a: 1 }, |
27 | | - above: [ |
28 | | - "Background", |
29 | | - "BackgroundSecondary", |
30 | | - "BackgroundHUD", |
31 | | - "InteractiveBackground", |
32 | | - "InteractiveElementLeft", |
33 | | - "InteractiveElementRight", |
34 | | - ], |
35 | | - }, |
36 | | - Scrollbar: { color: { r: 170, g: 170, b: 170, a: 1 }, above: [] }, |
37 | | - AcceptButton: { color: { r: 33, g: 137, b: 228, a: 1 }, above: [] }, |
38 | | - CancelButton: { color: { r: 248, g: 78, b: 78, a: 1 }, above: [] }, |
39 | | - InteractiveElementText: { |
40 | | - color: { r: 255, g: 255, b: 255, a: 1 }, |
41 | | - above: [], |
42 | | - }, |
43 | | - AcceptCancelButtonText: { |
44 | | - color: { r: 0, g: 0, b: 0, a: 1 }, |
45 | | - above: ["AcceptButton", "CancelButton"], |
46 | | - }, |
47 | | - BackgroundHUD: { color: { r: 23, g: 23, b: 23, a: 1 }, above: [] }, |
48 | | - InteractiveHover: { color: { r: 150, g: 150, b: 150, a: 1 }, above: [] }, |
49 | | - InteractiveSelect: { color: { r: 100, g: 100, b: 100, a: 1 }, above: [] }, |
50 | | - Icon: { |
51 | | - color: { r: 255, g: 255, b: 255, a: 1 }, |
52 | | - above: ["Background", "BackgroundSecondary", "InteractiveBackground"], |
53 | | - }, |
54 | | - MainHUDIcon: { |
55 | | - color: { r: 255, g: 255, b: 255, a: 1 }, |
56 | | - above: ["BackgroundHUD"], |
57 | | - }, |
58 | | - MainHUDCloseIcon: { |
59 | | - color: { r: 0, g: 0, b: 0, a: 1 }, |
60 | | - above: ["InteractiveElementRight", "#ffffff"], |
61 | | - }, |
62 | | - HighlightHover: { color: { r: 89, g: 255, b: 133, a: 1 }, above: [] }, |
63 | | - HighlightSelect: { color: { r: 255, g: 89, b: 133, a: 1 }, above: [] }, |
64 | | - SkyboxTop: { color: { r: 255, g: 255, b: 255, a: 1 }, above: [] }, |
65 | | - SkyboxBottom: { color: { r: 255, g: 255, b: 255, a: 1 }, above: [] }, |
66 | | - FloorGrid: { color: { r: 93, g: 93, b: 93, a: 1 }, above: [] }, |
67 | | - MatchRedAlliance: { color: { r: 180, g: 20, b: 20, a: 1 }, above: [] }, |
68 | | - MatchBlueAlliance: { color: { r: 20, g: 20, b: 180, a: 1 }, above: [] }, |
69 | | - ToastInfo: { color: { r: 126, g: 34, b: 206, a: 1 }, above: [] }, |
70 | | - ToastWarning: { color: { r: 234, g: 179, b: 8, a: 1 }, above: [] }, |
71 | | - ToastError: { color: { r: 239, g: 68, b: 68, a: 1 }, above: [] }, |
72 | | -} |
73 | | -const themes = { |
74 | | - Default: defaultColors, |
75 | | -} |
| 6 | +import { initialThemeName, themes, defaultColors } from "@/theme.ts" |
76 | 7 |
|
77 | 8 | window.convertAuthToken = code => APS.convertAuthToken(code) |
78 | 9 |
|
|
0 commit comments