zed/styles/styleTree/app.ts

47 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-04-01 03:43:01 +00:00
import Theme from "../themes/theme";
import chatPanel from "./chatPanel";
import { backgroundColor, borderColor, text } from "./components";
import contactsPanel from "./contactsPanel";
2022-03-30 23:59:35 +00:00
import editor from "./editor";
2022-04-01 03:43:01 +00:00
import projectPanel from "./projectPanel";
import search from "./search";
2022-04-01 03:43:01 +00:00
import selectorModal from "./selectorModal";
2022-03-31 05:38:18 +00:00
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-31 00:26:47 +00:00
};
export default function app(theme: Theme): Object {
return {
selector: selectorModal(theme),
workspace: workspace(theme),
editor: editor(theme),
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,
},
},
2022-03-31 00:26:47 +00:00
},
projectPanel: projectPanel(theme),
chatPanel: chatPanel(theme),
contactsPanel: contactsPanel(theme),
search: search(theme),
breadcrumbs: {
...text(theme, "sans", "primary"),
padding: {
left: 6,
},
}
};
}