2022-03-31 05:38:18 +00:00
|
|
|
import chatPanel from "./chat-panel";
|
|
|
|
import { backgroundColor, border, borderColor, player, 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 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-29 19:08:00 +00:00
|
|
|
extends: "$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
|
|
|
},
|
|
|
|
},
|
|
|
|
search: {
|
2022-03-29 22:28:19 +00:00
|
|
|
background: backgroundColor(theme, 300),
|
2022-03-31 05:38:18 +00:00
|
|
|
matchBackground: theme.editor.highlight.match,
|
2022-03-31 00:26:47 +00:00
|
|
|
tabIconSpacing: 4,
|
|
|
|
tabIconWidth: 14,
|
|
|
|
activeHoveredOptionButton: {
|
2022-03-29 19:08:00 +00:00
|
|
|
extends: "$search.option_button",
|
2022-03-31 05:38:18 +00:00
|
|
|
background: backgroundColor(theme, 100),
|
2022-03-29 19:08:00 +00:00
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
activeOptionButton: {
|
2022-03-29 19:08:00 +00:00
|
|
|
extends: "$search.option_button",
|
2022-03-31 05:38:18 +00:00
|
|
|
background: backgroundColor(theme, 100),
|
2022-03-29 19:08:00 +00:00
|
|
|
},
|
|
|
|
editor: {
|
2022-03-31 05:38:18 +00:00
|
|
|
background: backgroundColor(theme, 500),
|
2022-03-31 00:26:47 +00:00
|
|
|
cornerRadius: 6,
|
|
|
|
maxWidth: 400,
|
2022-03-31 05:38:18 +00:00
|
|
|
placeholderText: text(theme, "mono", "placeholder"),
|
|
|
|
selection: player(theme, 1).selection,
|
|
|
|
text: text(theme, "mono", "primary"),
|
|
|
|
border: border(theme, "primary"),
|
2022-03-29 19:08:00 +00:00
|
|
|
margin: {
|
|
|
|
bottom: 5,
|
|
|
|
left: 5,
|
|
|
|
right: 5,
|
|
|
|
top: 5,
|
|
|
|
},
|
|
|
|
padding: {
|
|
|
|
bottom: 3,
|
|
|
|
left: 13,
|
|
|
|
right: 13,
|
|
|
|
top: 3,
|
|
|
|
},
|
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
hoveredOptionButton: {
|
|
|
|
extends: "$search.optionButton",
|
2022-03-31 05:38:18 +00:00
|
|
|
background: backgroundColor(theme, 100),
|
2022-03-29 19:08:00 +00:00
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
invalidEditor: {
|
2022-03-29 19:08:00 +00:00
|
|
|
extends: "$search.editor",
|
2022-03-31 05:38:18 +00:00
|
|
|
border: border(theme, "error"),
|
2022-03-29 19:08:00 +00:00
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
matchIndex: {
|
2022-03-31 05:38:18 +00:00
|
|
|
...text(theme, "mono", "secondary"),
|
2022-03-29 19:08:00 +00:00
|
|
|
padding: 6,
|
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
optionButton: {
|
2022-03-31 05:38:18 +00:00
|
|
|
...text(theme, "mono", "secondary"),
|
2022-03-29 22:28:19 +00:00
|
|
|
background: backgroundColor(theme, 300),
|
2022-03-31 00:26:47 +00:00
|
|
|
cornerRadius: 6,
|
2022-03-31 05:38:18 +00:00
|
|
|
border: border(theme, "primary"),
|
2022-03-29 19:08:00 +00:00
|
|
|
margin: {
|
|
|
|
left: 1,
|
|
|
|
right: 1,
|
|
|
|
},
|
|
|
|
padding: {
|
|
|
|
bottom: 1,
|
|
|
|
left: 6,
|
|
|
|
right: 6,
|
|
|
|
top: 1,
|
|
|
|
},
|
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
optionButtonGroup: {
|
2022-03-29 19:08:00 +00:00
|
|
|
padding: {
|
|
|
|
left: 2,
|
|
|
|
right: 2,
|
|
|
|
},
|
|
|
|
},
|
2022-03-31 00:26:47 +00:00
|
|
|
resultsStatus: {
|
2022-03-31 05:38:18 +00:00
|
|
|
...text(theme, "mono", "primary"),
|
2022-03-29 19:08:00 +00:00
|
|
|
size: 18,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|