Skip to content

fix: Properly fallback on Skia AcrylicBrush - #5188

Merged
davidjohnoliver merged 1 commit into
unoplatform:masterfrom
MartinZikmund:dev/mazi/skia-acrylicbackground
Feb 9, 2021
Merged

davidjohnoliver merged 1 commit into
unoplatform:masterfrom
MartinZikmund:dev/mazi/skia-acrylicbackground

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Feb 9, 2021 •

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): fixes part of #5186

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Fallback on AcrylicBrush is not working on Skia.

What is the new behavior?

Fallback now properly uses the fallback color with opacity.

PR Checklist

Please check if your PR fulfills the following requirements:

@MartinZikmund
MartinZikmund requested a review from a team February 9, 2021 13:15
@gitpod-io

gitpod-io Bot commented Feb 9, 2021

Copy link
Copy Markdown

@MartinZikmund MartinZikmund self-assigned this Feb 9, 2021
Comment on lines +136 to +140
else if (background is AcrylicBrush acrylicBrush)
{
Brush.AssignAndObserveBrush(acrylicBrush, color => backgroundShape.FillBrush = compositor.CreateColorBrush(color))
.DisposeWith(disposables);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We really need to refactor the way brushes are applied on controls. This approach is a maintenance nightmare.

@davidjohnoliver
davidjohnoliver merged commit 01a38fa into unoplatform:master Feb 9, 2021
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.

3 participants