app.ts

 1import { text } from "./components"
 2import contactFinder from "./contactFinder"
 3import contactsPopover from "./contactsPopover"
 4import commandPalette from "./commandPalette"
 5import editor from "./editor"
 6import projectPanel from "./projectPanel"
 7import search from "./search"
 8import picker from "./picker"
 9import workspace from "./workspace"
10import contextMenu from "./contextMenu"
11import sharedScreen from "./sharedScreen"
12import projectDiagnostics from "./projectDiagnostics"
13import contactNotification from "./contactNotification"
14import updateNotification from "./updateNotification"
15import simpleMessageNotification from "./simpleMessageNotification"
16import projectSharedNotification from "./projectSharedNotification"
17import tooltip from "./tooltip"
18import terminal from "./terminal"
19import contactList from "./contactList"
20import incomingCallNotification from "./incomingCallNotification"
21import { ColorScheme } from "../themes/common/colorScheme"
22import feedback from "./feedback"
23import welcome from "./welcome"
24
25export default function app(colorScheme: ColorScheme): Object {
26    return {
27        meta: {
28            name: colorScheme.name,
29            isLight: colorScheme.isLight,
30        },
31        commandPalette: commandPalette(colorScheme),
32        contactNotification: contactNotification(colorScheme),
33        projectSharedNotification: projectSharedNotification(colorScheme),
34        incomingCallNotification: incomingCallNotification(colorScheme),
35        picker: picker(colorScheme),
36        workspace: workspace(colorScheme),
37        welcome: welcome(colorScheme),
38        contextMenu: contextMenu(colorScheme),
39        editor: editor(colorScheme),
40        projectDiagnostics: projectDiagnostics(colorScheme),
41        projectPanel: projectPanel(colorScheme),
42        contactsPopover: contactsPopover(colorScheme),
43        contactFinder: contactFinder(colorScheme),
44        contactList: contactList(colorScheme),
45        search: search(colorScheme),
46        sharedScreen: sharedScreen(colorScheme),
47        breadcrumbs: {
48            ...text(colorScheme.highest, "sans", "variant"),
49            padding: {
50                left: 6,
51            },
52        },
53        updateNotification: updateNotification(colorScheme),
54        simpleMessageNotification: simpleMessageNotification(colorScheme),
55        tooltip: tooltip(colorScheme),
56        terminal: terminal(colorScheme),
57        feedback: feedback(colorScheme),
58        colorScheme: {
59            ...colorScheme,
60            players: Object.values(colorScheme.players),
61            ramps: {
62                neutral: colorScheme.ramps.neutral.colors(100, "hex"),
63                red: colorScheme.ramps.red.colors(100, "hex"),
64                orange: colorScheme.ramps.orange.colors(100, "hex"),
65                yellow: colorScheme.ramps.yellow.colors(100, "hex"),
66                green: colorScheme.ramps.green.colors(100, "hex"),
67                cyan: colorScheme.ramps.cyan.colors(100, "hex"),
68                blue: colorScheme.ramps.blue.colors(100, "hex"),
69                violet: colorScheme.ramps.violet.colors(100, "hex"),
70                magenta: colorScheme.ramps.magenta.colors(100, "hex"),
71            },
72        },
73    }
74}