Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Show artboard names in viewport

Open 0HyperCube opened this issue 1 year ago • 2 comments

Currently it is possible to rename an artboard by double clicking in the layer tree. However this change is not reflected in the viewport, where it is still titled "Artboard". artboard with incorrect name in viewport

See impl GraphicElementRendered for Artboard for the artboard rendering code. This change necessitates the passing of the name string into the graph execution context, whereas currently it is just visible as metadata on the document graph and so not sent to the actual node implementations at all. If the ConstructLayerNode got the layer name as input then it could apply the name to the passed in GraphicElement, which would involve storing the string in the Artboard struct and then retrieving that during rendering.

0HyperCube avatar Mar 26 '24 17:03 0HyperCube

Hello, I would like to work on this issue. If it is OK, I can send a draft PR and start working.

sakird avatar Jun 16 '24 06:06 sakird

This should be available, so please open a PR for it when you have some in-progress code, thanks!

Keavon avatar Jun 16 '24 06:06 Keavon

Closed by #1795

Keavon avatar Jul 07 '24 07:07 Keavon