1import Theme from "../themes/common/theme";
2import { panel } from "./app";
3import { backgroundColor, iconColor, player, text } from "./components";
4
5export default function projectPanel(theme: Theme) {
6 return {
7 ...panel,
8 padding: { left: 12, right: 12, top: 6, bottom: 6 },
9 indentWidth: 8,
10 entry: {
11 height: 24,
12 iconColor: iconColor(theme, "muted"),
13 iconSize: 8,
14 iconSpacing: 8,
15 text: text(theme, "mono", "secondary", { size: "sm" }),
16 hover: {
17 background: backgroundColor(theme, 300, "hovered"),
18 },
19 active: {
20 background: backgroundColor(theme, 300, "active"),
21 text: text(theme, "mono", "active", { size: "sm" }),
22 },
23 activeHover: {
24 background: backgroundColor(theme, 300, "active"),
25 text: text(theme, "mono", "active", { size: "sm" }),
26 },
27 },
28 cutEntryFade: 0.4,
29 ignoredEntryFade: 0.6,
30 filenameEditor: {
31 background: backgroundColor(theme, "on300"),
32 text: text(theme, "mono", "active", { size: "sm" }),
33 selection: player(theme, 1).selection,
34 },
35 };
36}