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        updateNotification: updateNotification(colorScheme),
48        simpleMessageNotification: simpleMessageNotification(colorScheme),
49        tooltip: tooltip(colorScheme),
50        terminal: terminal(colorScheme),
51        feedback: feedback(colorScheme),
52        colorScheme: {
53            ...colorScheme,
54            players: Object.values(colorScheme.players),
55            ramps: {
56                neutral: colorScheme.ramps.neutral.colors(100, "hex"),
57                red: colorScheme.ramps.red.colors(100, "hex"),
58                orange: colorScheme.ramps.orange.colors(100, "hex"),
59                yellow: colorScheme.ramps.yellow.colors(100, "hex"),
60                green: colorScheme.ramps.green.colors(100, "hex"),
61                cyan: colorScheme.ramps.cyan.colors(100, "hex"),
62                blue: colorScheme.ramps.blue.colors(100, "hex"),
63                violet: colorScheme.ramps.violet.colors(100, "hex"),
64                magenta: colorScheme.ramps.magenta.colors(100, "hex"),
65            },
66        },
67    }
68}