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 lspLogMenu from "./lspLogMenu"
21import incomingCallNotification from "./incomingCallNotification"
22import { ColorScheme } from "../theme/colorScheme"
23import feedback from "./feedback"
24import welcome from "./welcome"
25import copilot from "./copilot"
26import assistant from "./assistant"
27
28export default function app(colorScheme: ColorScheme): Object {
29    return {
30        meta: {
31            name: colorScheme.name,
32            isLight: colorScheme.isLight,
33        },
34        commandPalette: commandPalette(colorScheme),
35        contactNotification: contactNotification(colorScheme),
36        projectSharedNotification: projectSharedNotification(colorScheme),
37        incomingCallNotification: incomingCallNotification(colorScheme),
38        picker: picker(colorScheme),
39        workspace: workspace(colorScheme),
40        copilot: copilot(colorScheme),
41        welcome: welcome(colorScheme),
42        contextMenu: contextMenu(colorScheme),
43        editor: editor(colorScheme),
44        projectDiagnostics: projectDiagnostics(colorScheme),
45        projectPanel: projectPanel(colorScheme),
46        contactsPopover: contactsPopover(colorScheme),
47        contactFinder: contactFinder(colorScheme),
48        contactList: contactList(colorScheme),
49        lspLogMenu: lspLogMenu(colorScheme),
50        search: search(colorScheme),
51        sharedScreen: sharedScreen(colorScheme),
52        updateNotification: updateNotification(colorScheme),
53        simpleMessageNotification: simpleMessageNotification(colorScheme),
54        tooltip: tooltip(colorScheme),
55        terminal: terminal(colorScheme),
56        assistant: assistant(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}