mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
93c0c2af0a
Replaced remaining extends with javascript object extension. Moved tokens/core.ts to tokens.ts and massaged the types to make it more obvious when types don't match up. Co-authored-by: Nathan Sobo <nathan@zed.dev>
36 lines
879 B
TypeScript
36 lines
879 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",
|
|
backgroundColor(theme, 300, "hovered")
|
|
),
|
|
padding: {
|
|
top: 6,
|
|
},
|
|
};
|
|
}
|