app.ts

 1import Theme from "../themes/common/theme";
 2import chatPanel from "./chatPanel";
 3import { text } from "./components";
 4import contactFinder from "./contactFinder";
 5import contactsPopover from "./contactsPopover";
 6import commandPalette from "./commandPalette";
 7import editor from "./editor";
 8import projectPanel from "./projectPanel";
 9import search from "./search";
10import picker from "./picker";
11import workspace from "./workspace";
12import contextMenu from "./contextMenu";
13import projectDiagnostics from "./projectDiagnostics";
14import contactNotification from "./contactNotification";
15import updateNotification from "./updateNotification";
16import projectSharedNotification from "./projectSharedNotification";
17import tooltip from "./tooltip";
18import terminal from "./terminal";
19import contactList from "./contactList";
20import incomingCallNotification from "./incomingCallNotification";
21
22export const panel = {
23  padding: { top: 12, bottom: 12 },
24};
25
26export default function app(theme: Theme): Object {
27  return {
28    meta: {
29      name: theme.name,
30      isLight: theme.isLight
31    },
32    picker: picker(theme),
33    workspace: workspace(theme),
34    contextMenu: contextMenu(theme),
35    editor: editor(theme),
36    projectDiagnostics: projectDiagnostics(theme),
37    commandPalette: commandPalette(theme),
38    projectPanel: projectPanel(theme),
39    chatPanel: chatPanel(theme),
40    contactsPopover: contactsPopover(theme),
41    contactList: contactList(theme),
42    contactFinder: contactFinder(theme),
43    search: search(theme),
44    breadcrumbs: {
45      ...text(theme, "sans", "secondary"),
46      padding: {
47        left: 6,
48      },
49    },
50    contactNotification: contactNotification(theme),
51    updateNotification: updateNotification(theme),
52    projectSharedNotification: projectSharedNotification(theme),
53    incomingCallNotification: incomingCallNotification(theme),
54    tooltip: tooltip(theme),
55    terminal: terminal(theme),
56  };
57}