Shadow container - #638
Conversation
967585f to
e8b2d35
Compare
|
The branch has been rebased from main, I'm getting some restore failures. |
e703a9c to
18441fc
Compare
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
|
The sample app is now available (#638 (comment)), and below is the webassembly render. Is the clipping of the shadow expected ? /cc @eriklimakc @roubachof |
|
@jeromelaban Yes, Jean-Marie has mentioned the clipping on Android and Wasm, I think @carldebilly was the one looking into it. |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
| } | ||
| } | ||
|
|
||
| private readonly ConcurrentDictionary<string, CacheBucket> _shadowsCache = new ConcurrentDictionary<string, CacheBucket>(); |
There was a problem hiding this comment.
i felt like when the shadows are being modified, the old cache arent being removed properly..?
|
|
||
| public void AddOrUpdate(string key, SKImage image) | ||
| { | ||
| System.Diagnostics.Debug.WriteLine($"[ShadowsCache] AddOrUpdate => key: {key}"); |
| if (!_shadowPropertyChanged) | ||
| { | ||
| // If a property has changed dynamically, we don't want to cache the updated shadows | ||
| Cache.AddOrUpdate(shadowsKey, surface.Snapshot()); |
There was a problem hiding this comment.
the instance of surface.Snapshot() dont need any lifetime management?
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
|
About the WASM clipping, on SkiaSharp 2.88.4-preview.84 we get a better result: |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
| return needsPaint; | ||
| } | ||
|
|
||
| #if false // ANDROID (see comment in ShadowContainer.cs) |
|
Android and iOS control overlap issue: #679 |
@kazo0 There is no implementation of neumorphism for visual states. This is just applied on the control itself. |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
dfa25df to
d8d9b93
Compare
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
1905ed3 to
562455b
Compare
562455b to
ee5bf38
Compare
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-638.eastus2.azurestaticapps.net |
|
@eriklimakc if you can help to work on the unresolved comments we left open on another PR, please |
(cc @jeromelaban) |
|
https://github.com/Mergifyio backport legacy/3x
|
✅ Backports have been createdDetails
|
Co-authored-by: roubachof <jm.alfonsi@gmail.com> Co-authored-by: xiaoy312 <xiaoyao312@gmail.com> Co-authored-by: Jérôme Laban <jlaban@gmail.com> Co-authored-by: Steve Bilogan <steve.bilogan@gmail.com> (cherry picked from commit 97bc94f) # Conflicts: # build/workflow/templates/dotnet-workload-install-mac.yml # build/workflow/templates/dotnet-workload-install-windows.yml # samples/Directory.Packages.props # samples/Uno.Toolkit.WinUI.Samples/Uno.Toolkit.WinUI.Samples.Mobile/Uno.Toolkit.WinUI.Samples.Mobile.csproj # src/Uno.Toolkit.sln
Co-authored-by: roubachof <jm.alfonsi@gmail.com> Co-authored-by: xiaoy312 <xiaoyao312@gmail.com> Co-authored-by: Jérôme Laban <jlaban@gmail.com> Co-authored-by: Steve Bilogan <steve.bilogan@gmail.com> (cherry picked from commit 97bc94f)
Co-authored-by: roubachof <jm.alfonsi@gmail.com> Co-authored-by: xiaoy312 <xiaoyao312@gmail.com> Co-authored-by: Jérôme Laban <jlaban@gmail.com> Co-authored-by: Steve Bilogan <steve.bilogan@gmail.com> (cherry picked from commit 97bc94f)
Co-authored-by: roubachof <jm.alfonsi@gmail.com> Co-authored-by: xiaoy312 <xiaoyao312@gmail.com> Co-authored-by: Jérôme Laban <jlaban@gmail.com> Co-authored-by: Steve Bilogan <steve.bilogan@gmail.com> (cherry picked from commit 97bc94f)
Co-authored-by: roubachof <jm.alfonsi@gmail.com> Co-authored-by: xiaoy312 <xiaoyao312@gmail.com> Co-authored-by: Jérôme Laban <jlaban@gmail.com> Co-authored-by: Steve Bilogan <steve.bilogan@gmail.com> Co-authored-by: Érik Lima <114886335+eriklimakc@users.noreply.github.com> Co-authored-by: eriklimakc <erik.lima@knowcode.app> Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>









GitHub Issue (If applicable): #
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Internal Issue (If applicable):