mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Simplified the different properties used for layer/shape rendering
Cleaned up UI layer shape service
This commit is contained in:
1 parent
f57aca3475
commit
fd9dd626f8
17 files changed
+192
-284
No files matched your search
@@ -15,12 +15,9 @@ namespace Artemis.Core.Models.Profile.LayerShapes
|
||||
|
||||
public override void CalculateRenderProperties()
|
||||
{
|
||||
var unscaled = GetUnscaledRectangle();
|
||||
RenderRectangle = SKRect.Create(0,0 , unscaled.Width, unscaled.Height);
|
||||
|
||||
var path = new SKPath();
|
||||
path.AddOval(RenderRectangle);
|
||||
RenderPath = path;
|
||||
path.AddOval(GetUnscaledRectangle());
|
||||
Path = path;
|
||||
}
|
||||
|
||||
internal override void ApplyToEntity()
|
||||
|
||||
Reference in new issue
Block a user