app.ts

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