Implemented direct styling for ignored and cut project panel entries
This commit is contained in:
parent
9148e1d30a
commit
552ebc0f29
5 changed files with 51 additions and 31 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue