Skip to content

Commit e0d04f5

Browse files
committed
v5.1.0
- (Add) Pixel Arithmetic - Brightness Step: Mutates the initial brightness with a step that is added/subtracted to the current value dependent on the processed layer count (#1014) - (Fix) Anycubic ZIP: Implement the missing fields from manifest file and allow to tune TSMC and regular global values (#1018) - (Fix) Handle floating precision error when calculating the `PerLayerSettings` flag (#1013) - (Fix) Linux: Pixel editor drawing cursor preview not visible (#1019) - (Fix) Use `async Task` instead of `async void` where possible - (Improvement) Use some refactorings for NET 9.0 features - (Change) Compile openCV with lower linux requirement (#1015) - (Upgrade) .NET from 9.0.3 to 9.0.4 - (Upgrade) AvaloniaUI from 11.2.6 to 11.3.0-beta2
1 parent 0a2248f commit e0d04f5

File tree

178 files changed

+3730
-2676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+3730
-2676
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 22/04/2025 - v5.1.0
4+
5+
- (Add) Pixel Arithmetic - Brightness Step: Mutates the initial brightness with a step that is added/subtracted to the current value dependent on the processed layer count (#1014)
6+
- (Fix) Anycubic ZIP: Implement the missing fields from manifest file and allow to tune TSMC and regular global values (#1018)
7+
- (Fix) Handle floating precision error when calculating the `PerLayerSettings` flag (#1013)
8+
- (Fix) Linux: Pixel editor drawing cursor preview not visible (#1019)
9+
- (Fix) Use `async Task` instead of `async void` where possible
10+
- (Improvement) Use some refactorings for NET 9.0 features
11+
- (Change) Compile openCV with lower linux requirement (#1015)
12+
- (Upgrade) .NET from 9.0.3 to 9.0.4
13+
- (Upgrade) AvaloniaUI from 11.2.6 to 11.3.0-beta2
14+
315
## 04/04/2025 - v5.0.9
416

517
- (Add) PrusaSlicer printer: Elegoo Mars 5 Ultra (#1006)

CREDITS.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,15 @@
9696
- Ryan Skow
9797
- Cainam
9898
- Cory Lytle
99-
- Samuel Comeau
99+
- Samuel Comeau
100+
- Collin Hunt
101+
- David Hope
102+
- Aris Dakanalis
103+
- Bohdan Heretskyi
104+
- Seth Cruz
105+
- Grzegorz Gajak
106+
- Cameron Bell
107+
- Robert McDougall
108+
- Jorge W. Quinones
109+
- Brian Dainty
110+
- Jason Simpson

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
3838

3939
<!-- Versions -->
40-
<UVtoolsVersion>5.0.9</UVtoolsVersion>
41-
<AvaloniaVersion>11.2.6</AvaloniaVersion>
40+
<UVtoolsVersion>5.1.0</UVtoolsVersion>
41+
<AvaloniaVersion>11.3.0-beta2</AvaloniaVersion>
4242

4343
<!-- MvvmToolkit -->
4444
<MvvmToolkitEnableINotifyPropertyChangingSupport>false</MvvmToolkitEnableINotifyPropertyChangingSupport>

RELEASE_NOTES.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
- (Add) PrusaSlicer printer: Elegoo Mars 5 Ultra (#1006)
2-
- (Fix) Ignore the "org.freedesktop.DBus.Error.UnknownMethod" exception to prevent crash on Linux (#964)
3-
- (Fix) Goo: Bad print when using tilting VAT printer (#1013)
4-
- (Upgrade) .NET from 9.0.2 to 9.0.3
5-
- (Upgrade) AvaloniaUI from 11.2.5 to 11.2.6
1+
- (Add) Pixel Arithmetic - Brightness Step: Mutates the initial brightness with a step that is added/subtracted to the current value dependent on the processed layer count (#1014)
2+
- (Fix) Anycubic ZIP: Implement the missing fields from manifest file and allow to tune TSMC and regular global values (#1018)
3+
- (Fix) Handle floating precision error when calculating the `PerLayerSettings` flag (#1013)
4+
- (Fix) Linux: Pixel editor drawing cursor preview not visible (#1019)
5+
- (Fix) Use `async Task` instead of `async void` where possible
6+
- (Improvement) Use some refactorings for NET 9.0 features
7+
- (Change) Compile openCV with lower linux requirement (#1015)
8+
- (Upgrade) .NET from 9.0.3 to 9.0.4
9+
- (Upgrade) AvaloniaUI from 11.2.6 to 11.3.0-beta2
610

Scripts/UVtools.ScriptSample/ScriptAutomateWorkflowSample.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ public void ScriptInit()
4242
Script.Description = "A workflow automation sample";
4343
Script.Author = "Tiago Conceição";
4444
Script.Version = new Version(0, 1);
45-
Script.UserInputs.AddRange(new []
46-
{
45+
Script.UserInputs.AddRange([
4746
InputErode,
4847
InputReliefRaft,
4948
InputPixelDimming
50-
});
49+
]);
5150
}
5251

5352
/// <summary>
@@ -65,7 +64,7 @@ public void ScriptInit()
6564
/// <returns>True if executes successfully to the end, otherwise false.</returns>
6665
public bool ScriptExecute()
6766
{
68-
List<Operation> operations = new();
67+
List<Operation> operations = [];
6968

7069
// Morph bottom layers
7170
if (InputErode.Value)

Scripts/UVtools.ScriptSample/ScriptInsetSample.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ public void ScriptInit()
5454
Script.Description = "Performs a black inset around objects";
5555
Script.Author = "Tiago Conceição";
5656
Script.Version = new Version(0, 1);
57-
Script.UserInputs.AddRange(new[]
58-
{
57+
Script.UserInputs.AddRange([
5958
InsetMarginFromEdge,
60-
InsetThickness
61-
});
59+
InsetThickness
60+
]);
6261
}
6362

6463
/// <summary>

Scripts/UVtools.ScriptSample/ScriptLightBleedCompensationSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public byte[] Levels
3636
{
3737
get
3838
{
39-
List<byte> levels = new();
39+
List<byte> levels = [];
4040
var split = BrightnessesInput.Value!.Split(',', StringSplitOptions.TrimEntries);
4141
foreach (var str in split)
4242
{

Scripts/UVtools.ScriptSample/ScriptSetLiftHeightSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void ScriptInit()
4848
Script.Author = "Tiago Conceição";
4949
Script.Version = new Version(0, 1);
5050

51-
Script.UserInputs.AddRange(new []{ BottomLiftHeight , LiftHeight});
51+
Script.UserInputs.AddRange([BottomLiftHeight , LiftHeight]);
5252
}
5353

5454
/// <summary>

Scripts/UVtools.ScriptSample/ScriptVATClean.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public bool ScriptExecute()
9999
{
100100
SlicerFile.BottomLayerCount = 1;
101101

102-
SlicerFile.Layers = new[] { layer };
102+
SlicerFile.Layers = [layer];
103103
});
104104

105105
SlicerFile.BottomExposureTime =

UVtools.AvaloniaControls/AdvancedImageBox.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ public ZoomLevelCollection(IEnumerable<int> collection)
120120
/// Returns the default zoom levels
121121
/// </summary>
122122
public static ZoomLevelCollection Default =>
123-
new(new[] {
123+
new([
124124
7, 10, 15, 20, 25, 30, 50, 70, 100, 150, 200, 300, 400, 500, 600, 700, 800, 1200, 1600, 3200, 6400
125-
});
125+
]);
126126

127127
#endregion
128128

@@ -1590,8 +1590,7 @@ public override void Render(DrawingContext context)
15901590
_pointerPosition.X - destSize.Width / 2,
15911591
_pointerPosition.Y - destSize.Height / 2
15921592
);
1593-
context.DrawImage(_trackerImage!, new Rect(destPos, destSize)
1594-
);
1593+
context.DrawImage(_trackerImage!, new Rect(destPos, destSize));
15951594
}
15961595

15971596
//SkiaContext.SkCanvas.dr

0 commit comments

Comments
 (0)