Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more Color overloads for brush properties #363

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

beyon
Copy link
Contributor

@beyon beyon commented Oct 30, 2023

Before: Some properties had overloads taking a Color value in addition to IBrush and a color string.
This commit adds overloads for brush properties missing a Color overload making it more consistent and ergonomic since at least in my mind setting the brush to a solid color is probably the most common scenario.

I was tempted to also change the parameter names in some cases where they are the generic term "value" to "color"/"brush" but then refrained since it could possibly break someone's code if they use named parameters and also not sure what you think of such a change.

…mics

Some Controls already allowed to set brush properties with Color directly while others only had color: string
This adds such overloads where they were missing
Renaming could potentially break code using named parameters, however with only one parameter such usage seems unlikely
Copy link
Member

@JaggerJo JaggerJo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution.

@JaggerJo
Copy link
Member

It would surprise me if the parameter names were used.

@JaggerJo JaggerJo merged commit 33a0cd7 into fsprojects:master Oct 30, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants