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