projectPanel.ts

 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: 20,
10    entry: {
11      height: 24,
12      iconColor: iconColor(theme, "muted"),
13      iconSize: 8,
14      iconSpacing: 8,
15      text: text(theme, "mono", "muted", { size: "sm" }),
16      hover: {
17        background: backgroundColor(theme, 300, "hovered"),
18        text: text(theme, "mono", "primary", { size: "sm" }),
19      },
20      active: {
21        background: backgroundColor(theme, 300, "active"),
22        text: text(theme, "mono", "primary", { size: "sm" }),
23      },
24      activeHover: {
25        background: backgroundColor(theme, 300, "hovered"),
26        text: text(theme, "mono", "active", { size: "sm" }),
27      }
28    },
29    cutEntryFade: 0.4,
30    ignoredEntryFade: 0.6,
31    filenameEditor: {
32      background: backgroundColor(theme, 500, "active"),
33      text: text(theme, "mono", "primary", { size: "sm" }),
34      selection: player(theme, 1).selection,
35    },
36  };
37}