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