1import { text } from "./components";
2import contactFinder from "./contactFinder";
3import contactsPopover from "./contactsPopover";
4import commandPalette from "./commandPalette";
5import editor from "./editor";
6import projectPanel from "./projectPanel";
7import search from "./search";
8import picker from "./picker";
9import workspace from "./workspace";
10import contextMenu from "./contextMenu";
11import projectDiagnostics from "./projectDiagnostics";
12import contactNotification from "./contactNotification";
13import updateNotification from "./updateNotification";
14import projectSharedNotification from "./projectSharedNotification";
15import tooltip from "./tooltip";
16import terminal from "./terminal";
17import contactList from "./contactList";
18import incomingCallNotification from "./incomingCallNotification";
19import { ColorScheme } from "../themes/common/colorScheme";
20
21// export const panel = {
22// padding: { top: 12, bottom: 12 },
23// };
24
25export default function app(colorScheme: ColorScheme): Object {
26 return {
27 meta: {
28 name: colorScheme.name,
29 isLight: colorScheme.isLight,
30 },
31 commandPalette: commandPalette(colorScheme),
32 contactNotification: contactNotification(colorScheme),
33 projectSharedNotification: projectSharedNotification(colorScheme),
34 incomingCallNotification: incomingCallNotification(colorScheme),
35 picker: picker(colorScheme),
36 workspace: workspace(colorScheme),
37 contextMenu: contextMenu(colorScheme),
38 editor: editor(colorScheme),
39 projectDiagnostics: projectDiagnostics(colorScheme),
40 projectPanel: projectPanel(colorScheme),
41 contactsPopover: contactsPopover(colorScheme),
42 contactFinder: contactFinder(colorScheme),
43 contactList: contactList(colorScheme),
44 search: search(colorScheme),
45 breadcrumbs: {
46 ...text(colorScheme.lowest.top, "sans", "variant"),
47 padding: {
48 left: 6,
49 },
50 },
51 updateNotification: updateNotification(colorScheme),
52 tooltip: tooltip(colorScheme),
53 terminal: terminal(colorScheme.lowest, colorScheme.players[0].cursor),
54 colorScheme: {
55 ...colorScheme,
56 lowest: {
57 ...colorScheme.lowest,
58 ramps: {
59 neutral: colorScheme.lowest.ramps.neutral.colors(100, "hex"),
60 red: colorScheme.lowest.ramps.red.colors(100, "hex"),
61 orange: colorScheme.lowest.ramps.orange.colors(100, "hex"),
62 yellow: colorScheme.lowest.ramps.yellow.colors(100, "hex"),
63 green: colorScheme.lowest.ramps.green.colors(100, "hex"),
64 cyan: colorScheme.lowest.ramps.cyan.colors(100, "hex"),
65 blue: colorScheme.lowest.ramps.blue.colors(100, "hex"),
66 violet: colorScheme.lowest.ramps.violet.colors(100, "hex"),
67 magenta: colorScheme.lowest.ramps.magenta.colors(100, "hex"),
68 },
69 },
70 middle: {
71 ...colorScheme.middle,
72 ramps: {
73 neutral: colorScheme.middle.ramps.neutral.colors(100, "hex"),
74 red: colorScheme.middle.ramps.red.colors(100, "hex"),
75 orange: colorScheme.middle.ramps.orange.colors(100, "hex"),
76 yellow: colorScheme.middle.ramps.yellow.colors(100, "hex"),
77 green: colorScheme.middle.ramps.green.colors(100, "hex"),
78 cyan: colorScheme.middle.ramps.cyan.colors(100, "hex"),
79 blue: colorScheme.middle.ramps.blue.colors(100, "hex"),
80 violet: colorScheme.middle.ramps.violet.colors(100, "hex"),
81 magenta: colorScheme.middle.ramps.magenta.colors(100, "hex"),
82 },
83 },
84 highest: {
85 ...colorScheme.highest,
86 ramps: {
87 neutral: colorScheme.highest.ramps.neutral.colors(100, "hex"),
88 red: colorScheme.highest.ramps.red.colors(100, "hex"),
89 orange: colorScheme.highest.ramps.orange.colors(100, "hex"),
90 yellow: colorScheme.highest.ramps.yellow.colors(100, "hex"),
91 green: colorScheme.highest.ramps.green.colors(100, "hex"),
92 cyan: colorScheme.highest.ramps.cyan.colors(100, "hex"),
93 blue: colorScheme.highest.ramps.blue.colors(100, "hex"),
94 violet: colorScheme.highest.ramps.violet.colors(100, "hex"),
95 magenta: colorScheme.highest.ramps.magenta.colors(100, "hex"),
96 },
97 },
98 players: [
99 colorScheme.players["0"],
100 colorScheme.players["1"],
101 colorScheme.players["2"],
102 colorScheme.players["3"],
103 colorScheme.players["4"],
104 colorScheme.players["5"],
105 colorScheme.players["6"],
106 colorScheme.players["7"],
107 ],
108 },
109 };
110}