mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-02 15:00:23 +00:00
bfeb6abb4b
Build script currently fails to type check. Not sure whats going on. Will fix in the morning. Co-authored-by: Nate Butler <nate@zed.dev>
32 lines
824 B
TypeScript
32 lines
824 B
TypeScript
import { panel } from "./app";
|
|
import { backgroundColor, iconColor, text, TextColor } from "./components";
|
|
import Theme from "../themes/theme";
|
|
import { Color } from "../utils/color";
|
|
|
|
export default function projectPanel(theme: Theme) {
|
|
function entry(theme: Theme, textColor: TextColor, background?: Color) {
|
|
return {
|
|
height: 22,
|
|
background,
|
|
iconColor: iconColor(theme, "muted"),
|
|
iconSize: 8,
|
|
iconSpacing: 8,
|
|
text: text(theme, "mono", textColor),
|
|
};
|
|
}
|
|
|
|
return {
|
|
...panel,
|
|
entry: entry(theme, "secondary"),
|
|
hoveredEntry: entry(
|
|
theme,
|
|
"secondary",
|
|
backgroundColor(theme, 300, "hovered")
|
|
),
|
|
selectedEntry: entry(theme, "primary"),
|
|
hoveredSelectedEntry: entry(theme, "primary", "hovered"),
|
|
padding: {
|
|
top: 6,
|
|
},
|
|
};
|
|
}
|