mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Nuget - Updated packages
Brush properties - Added default values Brush properties - Removed option to always auto-expand groups Layer properties - Remember expanded/collapsed groups Storage - Added migration system Storage - Added migration that removes profiles made in the old layer properties format Layer timeline - Added back zoom functionality
This commit is contained in:
1 parent
8456817a2b
commit
e6080eb897
58 files changed
+329
-188
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using Artemis.Core.Models.Profile.LayerProperties;
|
||||
using Artemis.Core.Models.Profile.LayerProperties.Attributes;
|
||||
using Artemis.Core.Models.Profile.LayerProperties.Attributes;
|
||||
using Artemis.Core.Models.Profile.LayerProperties.Types;
|
||||
using SkiaSharp;
|
||||
|
||||
@@ -19,17 +18,15 @@ namespace Artemis.Core.Models.Profile
|
||||
[PropertyDescription(Name = "Brush type", Description = "The type of brush to use for this layer")]
|
||||
public LayerBrushReferenceLayerProperty BrushReference { get; set; }
|
||||
|
||||
protected override void PopulateDefaults()
|
||||
{
|
||||
ShapeType.DefaultValue = LayerShapeType.Rectangle;
|
||||
FillType.DefaultValue = LayerFillType.Stretch;
|
||||
BlendMode.DefaultValue = SKBlendMode.SrcOver;
|
||||
}
|
||||
|
||||
protected override void OnPropertiesInitialized()
|
||||
{
|
||||
// Populate defaults
|
||||
if (!ShapeType.IsLoadedFromStorage)
|
||||
ShapeType.BaseValue = LayerShapeType.Rectangle;
|
||||
if (!FillType.IsLoadedFromStorage)
|
||||
FillType.BaseValue = LayerFillType.Stretch;
|
||||
if (!BlendMode.IsLoadedFromStorage)
|
||||
BlendMode.BaseValue = SKBlendMode.SrcOver;
|
||||
|
||||
// TODO: SpoinkyNL 28-4-2020: Select preferred default brush type with a fallback to the first available
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user