app.ts

 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 sharedScreen from "./sharedScreen";
12import projectDiagnostics from "./projectDiagnostics";
13import contactNotification from "./contactNotification";
14import updateNotification from "./updateNotification";
15import projectSharedNotification from "./projectSharedNotification";
16import tooltip from "./tooltip";
17import terminal from "./terminal";
18import contactList from "./contactList";
19import incomingCallNotification from "./incomingCallNotification";
20import { ColorScheme } from "../themes/common/colorScheme";
21
22export default function app(colorScheme: ColorScheme): Object {
23  return {
24    meta: {
25      name: colorScheme.name,
26      isLight: colorScheme.isLight,
27    },
28    commandPalette: commandPalette(colorScheme),
29    contactNotification: contactNotification(colorScheme),
30    projectSharedNotification: projectSharedNotification(colorScheme),
31    incomingCallNotification: incomingCallNotification(colorScheme),
32    picker: picker(colorScheme),
33    workspace: workspace(colorScheme),
34    contextMenu: contextMenu(colorScheme),
35    editor: editor(colorScheme),
36    projectDiagnostics: projectDiagnostics(colorScheme),
37    projectPanel: projectPanel(colorScheme),
38    contactsPopover: contactsPopover(colorScheme),
39    contactFinder: contactFinder(colorScheme),
40    contactList: contactList(colorScheme),
41    search: search(colorScheme),
42    sharedScreen: sharedScreen(colorScheme),
43    breadcrumbs: {
44      ...text(colorScheme.highest, "sans", "variant"),
45      padding: {
46        left: 6,
47      },
48    },
49    updateNotification: updateNotification(colorScheme),
50    tooltip: tooltip(colorScheme),
51    terminal: terminal(colorScheme),
52    colorScheme: {
53      ...colorScheme,
54      players: Object.values(colorScheme.players),
55      ramps: {
56        neutral: colorScheme.ramps.neutral.colors(100, "hex"),
57        red: colorScheme.ramps.red.colors(100, "hex"),
58        orange: colorScheme.ramps.orange.colors(100, "hex"),
59        yellow: colorScheme.ramps.yellow.colors(100, "hex"),
60        green: colorScheme.ramps.green.colors(100, "hex"),
61        cyan: colorScheme.ramps.cyan.colors(100, "hex"),
62        blue: colorScheme.ramps.blue.colors(100, "hex"),
63        violet: colorScheme.ramps.violet.colors(100, "hex"),
64        magenta: colorScheme.ramps.magenta.colors(100, "hex"),
65      },
66    },
67  };
68}