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