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