2022-03-31 00:26:47 +00:00
|
|
|
import { panel } from "./app";
|
|
|
|
import { backgroundColor, iconColor, text, TextColor } from "./components";
|
2022-04-01 03:27:25 +00:00
|
|
|
import Theme from "../themes/theme";
|
|
|
|
import { Color } from "../utils/color";
|
2022-03-31 00:26:47 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|