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