Repository navigation
Shapes adjustments - #3652
Shapes adjustments#3652
Conversation
|
The build 17953 found UI Test snapshots differences: Details
|
|
The build 17953 found UI Test snapshots differences: Details
|
7734935 to
0e4fa11
Compare
|
The build 17964 found UI Test snapshots differences: Details
|
|
The build 17964 found UI Test snapshots differences: Details
|
|
The build 17964 found UI Test snapshots differences: Details
|
|
The build 17964 found UI Test snapshots differences: Details
|
|
The build 17964 found UI Test snapshots differences: Details
|
1b878eb to
fb20f4f
Compare
|
The build 17982 found UI Test snapshots differences: Details
|
b82837b to
3aca2d1
Compare
|
The build 17998 found UI Test snapshots differences: Details
|
|
The build 17998 found UI Test snapshots differences: Details
|
fb21df7 to
8875854
Compare
|
|
||
| shapeVisual.Shapes.Add(spriteShape); | ||
| var insideArea = new Rect(default, fullArea.Size); | ||
| var insertionIndex = 0; |
There was a problem hiding this comment.
Codacy found an issue: Remove the unused local variable 'insertionIndex'.
| { | ||
| public partial class Compositor | ||
| { | ||
| private Stack<float> _opacityStack = new Stack<float>(); |
There was a problem hiding this comment.
Codacy found an issue: Make '_opacityStack' 'readonly'.
| this.Log().Trace($"Render {renderCount++}"); | ||
| } | ||
|
|
||
| var dpi = 1; // (Window.Screen?.Resolution ?? 1) / 96.0; |
There was a problem hiding this comment.
Codacy found an issue: Remove this commented out code.
| { | ||
| if (_currentSurface?.Image != null) | ||
| { | ||
| // Calculate the resulting space required on screen for the image; |
There was a problem hiding this comment.
Codacy found an issue: Remove this commented out code.
| } | ||
| else if (background is ImageBrush imgBackground) | ||
| { | ||
| //var bgSrc = imgBackground.ImageSource; |
There was a problem hiding this comment.
Codacy found an issue: Remove this commented out code.
| var insideArea = new Rect(default, fullArea.Size); | ||
| var insertionIndex = 0; | ||
|
|
||
| // CreateGradientBrushLayers(fullArea, insideArea, parent, sublayers, ref insertionIndex, gradientBackground, fillMask: null); |
There was a problem hiding this comment.
Codacy found an issue: Remove this commented out code.
| else | ||
| { | ||
| if (element._pointerEntered) | ||
| bool RecursePointerExited(UIElement e) |
There was a problem hiding this comment.
Codacy found an issue: Change return type to 'void'; not a single caller uses the returned value.
| } | ||
| } | ||
| else if(cpg.Path.GeometrySource is null) | ||
| { |
There was a problem hiding this comment.
Codacy found an issue: Either remove or fill this block of code.
| } | ||
| ApplyClip(surface, visual); | ||
|
|
||
| using var opacityDisposable = PushOpacity(visual.Opacity); |
There was a problem hiding this comment.
Codacy found an issue: Remove the unused local variable 'opacityDisposable'.
| { | ||
| //var uiImage = imgBackground.ImageSource?.ImageData; | ||
| //if (uiImage != null && uiImage.Size != CGSize.Empty) | ||
| //var imgSrc = imgBackground.ImageSource; |
There was a problem hiding this comment.
Codacy found an issue: Remove this commented out code.
| geometry.Geometry.ArcTo((float)adjustedArea.Right, (float)adjustedArea.Bottom, (float)adjustedArea.GetMidX(), (float)adjustedArea.Bottom, (float)cornerRadius.BottomRight); | ||
| geometry.Geometry.ArcTo((float)adjustedArea.Left, (float)adjustedArea.Bottom, (float)adjustedArea.Left, (float)adjustedArea.GetMidY(), (float)cornerRadius.BottomLeft); | ||
| geometry.Geometry.ArcTo((float)adjustedArea.Left, (float)adjustedArea.Top, (float)adjustedArea.GetMidX(), (float)adjustedArea.Top, (float)cornerRadius.TopLeft); | ||
| var outerPath = GetRoundedPath(cornerRadius, area); |
There was a problem hiding this comment.
Codacy found an issue: Remove the unused local variable 'outerPath'.
| area.Height - borderThickness.Top - borderThickness.Bottom); | ||
|
|
||
| shapeVisual.Shapes.Add(spriteShape); | ||
| var insideArea = new Rect(default, fullArea.Size); |
There was a problem hiding this comment.
Codacy found an issue: Remove the unused local variable 'insideArea'.
| { | ||
| // Not yet working because of theme propagation issue. Uncomment to dynamically select the theme | ||
|
|
||
| //var subKey = @"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"; |
There was a problem hiding this comment.
Codacy found an issue: Remove this commented out code.
|
The build 18046 found UI Test snapshots differences: Details
|
|
The build 18052 found UI Test snapshots differences: Details
|
Avoids the use of local precedence for the shapes which may be overriden by
0f92e44 to
88225e0
Compare
PR Type
What kind of change does this PR introduce?
What is the new behavior?
Various shapes updates
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):