Fix Shapes BackgroundColor invalidation #27398
Open
+91
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
Fix invalidating Shapes BackgroundColor.
We can set the background of Shapes with BackgroundColor, Background and Fill. In the case of the Rectangle, everything is applied to the background of the Shape equally. Fill > Background > BackgroundColor, Fill overwrites Background and if Background is used it overwrites BackgroundColor.
![image](https://private-user-images.githubusercontent.com/6755973/407294397-d8c82962-22c2-4467-8dec-ca3bdc05363b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4OTQzODAsIm5iZiI6MTczODg5NDA4MCwicGF0aCI6Ii82NzU1OTczLzQwNzI5NDM5Ny1kOGM4Mjk2Mi0yMmMyLTQ0NjctOGRlYy1jYTNiZGMwNTM2M2IucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMDIwODAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjMwNzdhM2JlYTZiYjI4N2Y3ODUxNGRhZTc5YjZkM2QzNGU2NGMxMGQ5NGViM2RlMTcwYjI2NzAwY2ZkMTRlNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.dolBcZTn7IqxHLizZr-nh0iEYFhZPUQ8FjPSnQpdEvM)
With an Ellipse, setting Background or BackgroundColor applies to the Shape's background; but if BackgroundColor or Background is applied in combination with Fill, Fill will fill the Shape and BackgroundColor is applied to the background color of the View.
Issues Fixed
Fixes #18131