10BC0 Change the visibility of the FillStyle back to public by jurihock · Pull Request #5126 · ScottPlot/ScottPlot · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@jurihock
Copy link

Please change the visibility of the FillStyle property back to public, as it was before the commit 2642eef.

The LineStyle property is already public, which allows the library user to customise the border line color.
The same should also apply to the FillStyle.

public class ZoomRectangle(Plot plot) : IZoomRectangle
{
    public FillStyle FillStyle { get; set; } = new() // new: this should be public too
    {
        Color = new Color(255, 0, 0).WithAlpha(100),
        AntiAlias = false,
    };

    public LineStyle LineStyle { get; set; } = new() // this is already public
    {
        Color = new Color(255, 0, 0).WithAlpha(200),
        Width = 1,
        AntiAlias = false,
    };
}

See also: How to change the color of ZoomRectangle? #4690

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0