app.ts

 1import Theme from "../themes/common/theme";
 2import chatPanel from "./chatPanel";
 3import { text } from "./components";
 4import contactFinder from "./contactFinder";
 5import contactsPanel from "./contactsPanel";
 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";
15
16export const panel = {
17  padding: { top: 12, bottom: 12 },
18};
19
20export default function app(theme: Theme): Object {
21  return {
22    picker: picker(theme),
23    workspace: workspace(theme),
24    contextMenu: contextMenu(theme),
25    editor: editor(theme),
26    projectDiagnostics: projectDiagnostics(theme),
27    commandPalette: commandPalette(theme),
28    projectPanel: projectPanel(theme),
29    chatPanel: chatPanel(theme),
30    contactsPanel: contactsPanel(theme),
31    contactFinder: contactFinder(theme),
32    search: search(theme),
33    breadcrumbs: {
34      ...text(theme, "sans", "secondary"),
35      padding: {
36        left: 6,
37      },
38    },
39    contactNotification: contactNotification(theme),
40  };
41}