2022-03-31 05:38:18 +00:00
|
|
|
import chatPanel from "./chat-panel";
|
2022-03-31 15:27:02 +00:00
|
|
|
import { backgroundColor, borderColor, text } from "./components";
|
2022-03-30 23:59:35 +00:00
|
|
|
import editor from "./editor";
|
2022-03-31 00:26:47 +00:00
|
|
|
import projectPanel from "./project-panel";
|
2022-03-31 15:27:02 +00:00
|
|
|
import search from "./search";
|
2022-03-31 05:38:18 +00:00
|
|
|
import selectorModal from "./selector-modal";
|
|
|
|
import Theme from "./theme";
|
|
|
|
import workspace from "./workspace";
|
2022-03-31 00:26:47 +00:00
|
|
|
|
|
|
|
export const panel = {
|
|
|
|
padding: { top: 12, left: 12, bottom: 12, right: 12 },
|
|
|
|
};
|
2022-03-29 19:08:00 +00:00
|
|
|
|
|
|
|
export default function app(theme: Theme): Object {
|
|
|
|
return {
|
|
|
|
selector: selectorModal(theme),
|
2022-03-29 22:28:19 +00:00
|
|
|
workspace: workspace(theme),
|
2022-03-30 23:59:35 +00:00
|
|
|
editor: editor(theme),
|
2022-03-31 00:26:47 +00:00
|
|
|
projectDiagnostics: {
|
|
|
|
background: backgroundColor(theme, 300),
|
|
|
|
tabIconSpacing: 4,
|
|
|
|
tabIconWidth: 13,
|
|
|
|
tabSummarySpacing: 10,
|
|
|
|
emptyMessage: {
|
|
|
|
...text(theme, "sans", "primary", { size: "lg" }),
|
|
|
|
},
|
|
|
|
statusBarItem: {
|
|
|
|
...text(theme, "sans", "muted"),
|
|
|
|
margin: {
|
|
|
|
right: 10,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
projectPanel: projectPanel(theme),
|
2022-03-31 00:45:34 +00:00
|
|
|
chatPanel: chatPanel(theme),
|
2022-03-31 00:26:47 +00:00
|
|
|
contactsPanel: {
|
2022-03-31 15:27:02 +00:00
|
|
|
...panel,
|
2022-03-31 00:26:47 +00:00
|
|
|
hostRowHeight: 28,
|
2022-03-31 05:38:18 +00:00
|
|
|
treeBranchColor: borderColor(theme, "muted"),
|
2022-03-31 00:26:47 +00:00
|
|
|
treeBranchWidth: 1,
|
|
|
|
hostAvatar: {
|
|
|
|
cornerRadius: 10,
|
2022-03-29 19:08:00 +00:00
|
|
|
width: 18,
|
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
hostUsername: {
|
2022-03-31 05:38:18 +00:00
|
|
|
...text(theme, "mono", "muted"),
|
2022-03-29 19:08:00 +00:00
|
|
|
padding: {
|
|
|
|
left: 8,
|
|
|
|
},
|
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
hoveredSharedProject: {
|
|
|
|
extends: "$contacts_panel.sharedProject",
|
2022-03-31 05:38:18 +00:00
|
|
|
background: theme.editor.line.active.value,
|
|
|
|
cornerRadius: 6,
|
2022-03-29 19:08:00 +00:00
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
hoveredUnsharedProject: {
|
|
|
|
extends: "$contacts_panel.unsharedProject",
|
2022-03-31 05:38:18 +00:00
|
|
|
background: theme.editor.line.active.value,
|
|
|
|
cornerRadius: 6,
|
2022-03-29 19:08:00 +00:00
|
|
|
},
|
|
|
|
project: {
|
2022-03-31 00:26:47 +00:00
|
|
|
guestAvatarSpacing: 4,
|
2022-03-29 19:08:00 +00:00
|
|
|
height: 24,
|
2022-03-31 00:26:47 +00:00
|
|
|
guestAvatar: {
|
|
|
|
cornerRadius: 8,
|
2022-03-29 19:08:00 +00:00
|
|
|
width: 14,
|
|
|
|
},
|
|
|
|
name: {
|
2022-03-31 05:38:18 +00:00
|
|
|
extends: text(theme, "mono", "secondary"),
|
2022-03-29 19:08:00 +00:00
|
|
|
margin: {
|
|
|
|
right: 6,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
padding: {
|
|
|
|
left: 8,
|
|
|
|
},
|
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
sharedProject: {
|
|
|
|
extends: "$contactsPanel.project",
|
2022-03-29 19:08:00 +00:00
|
|
|
name: {
|
2022-03-31 05:38:18 +00:00
|
|
|
color: text(theme, "mono", "primary"),
|
2022-03-29 19:08:00 +00:00
|
|
|
},
|
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
unsharedProject: {
|
|
|
|
extends: "$contactsPanel.project",
|
2022-03-29 19:08:00 +00:00
|
|
|
},
|
|
|
|
},
|
2022-03-31 15:27:02 +00:00
|
|
|
search: search(theme),
|
2022-03-29 19:08:00 +00:00
|
|
|
};
|
|
|
|
}
|