zed/styles/styleTree/app.ts

91 lines
2.2 KiB
TypeScript
Raw Normal View History

2022-03-31 05:38:18 +00:00
import chatPanel from "./chat-panel";
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";
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 },
};
export default function app(theme: Theme): Object {
return {
selector: selectorModal(theme),
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: {
...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,
width: 18,
},
2022-03-31 00:26:47 +00:00
hostUsername: {
2022-03-31 05:38:18 +00:00
...text(theme, "mono", "muted"),
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-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,
},
project: {
2022-03-31 00:26:47 +00:00
guestAvatarSpacing: 4,
height: 24,
2022-03-31 00:26:47 +00:00
guestAvatar: {
cornerRadius: 8,
width: 14,
},
name: {
2022-03-31 05:38:18 +00:00
extends: text(theme, "mono", "secondary"),
margin: {
right: 6,
},
},
padding: {
left: 8,
},
},
2022-03-31 00:26:47 +00:00
sharedProject: {
extends: "$contactsPanel.project",
name: {
2022-03-31 05:38:18 +00:00
color: text(theme, "mono", "primary"),
},
},
2022-03-31 00:26:47 +00:00
unsharedProject: {
extends: "$contactsPanel.project",
},
},
search: search(theme),
};
}