guides icon indicating copy to clipboard operation
guides copied to clipboard

Feature: Set custom guide color and guideline style through a prop

Open drumnation opened this issue 4 years ago • 1 comments

Environments

  • Framework name: react-guides

Description

In my app I needed to be able to dynamically set the guide color in the properties panel via a prop, allowing the user to choose the color on the fly. I also needed the guide line to be dashed instead of solid.

I have made some changes in my fork to allow for this and wanted to post an issue here to see if this is something the community might want me to PR.

I added a guideColor prop and can add a prop to allow selecting a dashed or solid line.

drumnation avatar Feb 17 '21 14:02 drumnation

I recommend using css. guides provide the classname.

<Guides className="custom" />
.custom .scena-guides .guide {
    background: #f33;
}

But if you write pr, I will consider it.

daybrush avatar Feb 26 '21 22:02 daybrush