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";
19
20export const panel = {
21  padding: { top: 12, bottom: 12 },
22};
23
24export default function app(theme: Theme): Object {
25  return {
26    meta: {
27      name: theme.name,
28      isLight: theme.isLight
29    },
30    picker: picker(theme),
31    workspace: workspace(theme),
32    contextMenu: contextMenu(theme),
33    editor: editor(theme),
34    projectDiagnostics: projectDiagnostics(theme),
35    commandPalette: commandPalette(theme),
36    projectPanel: projectPanel(theme),
37    chatPanel: chatPanel(theme),
38    contactsPopover: contactsPopover(theme),
39    contactFinder: contactFinder(theme),
40    search: search(theme),
41    breadcrumbs: {
42      ...text(theme, "sans", "secondary"),
43      padding: {
44        left: 6,
45      },
46    },
47    contactNotification: contactNotification(theme),
48    updateNotification: updateNotification(theme),
49    projectSharedNotification: projectSharedNotification(theme),
50    tooltip: tooltip(theme),
51    terminal: terminal(theme),
52  };
53}