Implemented direct styling for ignored and cut project panel entries

This commit is contained in:
Mikayla Maki 2022-10-28 10:45:45 -07:00
parent 9148e1d30a
commit 552ebc0f29
5 changed files with 51 additions and 31 deletions

View file

@ -89,6 +89,7 @@ interface TextProperties {
size?: keyof typeof fontSizes;
weight?: FontWeight;
underline?: boolean;
color?: string;
}
export function text(
@ -132,11 +133,12 @@ export function text(
}
let size = fontSizes[properties?.size || "sm"];
let color = properties?.color || style.foreground;
return {
family: fontFamilies[fontFamily],
color: style.foreground,
...properties,
color,
size,
};
}