Comfy-Org / Comfy-Org/ComfyUI_frontend
[Feature Request]: Change Pin Icon
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 699
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 490
Description
## Ref
- #120.
- Comfy-Org/ComfyUI_frontend#831
## Possible Implementation
The PrimeIcons font is already loaded with icons mapped to unicode sequences:
```javascript
ctx.textAlign = "left";
ctx.fillText(
title,
title_height,
LiteGraph.NODE_TITLE_TEXT_Y - title_height
);
if (node22.pinned) {
ctx.font = `${this.title_text_font.split(" ")[0]} PrimeIcons`
ctx.fillText(
"\uea25",
title_height + ctx.measureText(title).width + 8,
LiteGraph.NODE_TITLE_TEXT_Y - title_height
)
}
```
## Comparison


Contributor guide
Assessment
This issue has not been assessed yet.