Skip to content

Commit

Permalink
v1.0.0.2
Browse files Browse the repository at this point in the history
* (Fix) ROI selection button on bottom was always disabled even when a region is selected
* (Fix) Settings - Issues- "Pixel intensity threshold" defaults to 0, but can't be set back to 0 after change (minimum is 1). (#78)
* (Fix) Settings - Issues - "Supporting safe pixels..." is present twice (#78)
* (Fix) Settings - Layer repair - Empty layers / Resin traps texts are swapped in the settings window (#78)
  • Loading branch information
sn4k3 committed Oct 23, 2020
1 parent 42fc845 commit 78a5e0f
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 30 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 23/10/2020 - v1.0.0.2

* (Fix) ROI selection button on bottom was always disabled even when a region is selected
* (Fix) Settings - Issues- "Pixel intensity threshold" defaults to 0, but can't be set back to 0 after change (minimum is 1). (#78)
* (Fix) Settings - Issues - "Supporting safe pixels..." is present twice (#78)
* (Fix) Settings - Layer repair - Empty layers / Resin traps texts are swapped in the settings window (#78)

## 23/10/2020 - v1.0.0.1

* (Change) Checked and click buttons highlight color for better distinguish
Expand Down
4 changes: 1 addition & 3 deletions UVtools.Core/UVtools.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
<RepositoryUrl>https://github.com/sn4k3/UVtools</RepositoryUrl>
<PackageProjectUrl>https://github.com/sn4k3/UVtools</PackageProjectUrl>
<Description>MSLA/DLP, file analysis, repair, conversion and manipulation</Description>
<Version>1.0.0.0</Version>
<Version>1.0.0.2</Version>
<Copyright>Copyright © 2020 PTRTECH</Copyright>
<PackageIcon>UVtools.png</PackageIcon>
<Platforms>AnyCPU;x64</Platforms>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
<FileVersion>1.0.0.1</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
4 changes: 2 additions & 2 deletions UVtools.WPF/MainWindow.LayerPreview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
using Color = UVtools.WPF.Structures.Color;
using Helpers = UVtools.WPF.Controls.Helpers;
using Point = System.Drawing.Point;
using Size = Avalonia.Size;

namespace UVtools.WPF
{
Expand All @@ -49,7 +48,8 @@ public enum ZoomToFitType : byte
Selection
};
#endregion
public AdvancedImageBox LayerImageBox;

public AdvancedImageBox LayerImageBox { get; private set; }
public SliderEx LayerSlider;
public Panel LayerNavigationTooltipPanel;
public Border LayerNavigationTooltipBorder;
Expand Down
2 changes: 1 addition & 1 deletion UVtools.WPF/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@
</Button>

<Button
IsEnabled="{Binding #LayerImage.HaveSelection}"
IsEnabled="{Binding IsFileLoaded}"
Command="{Binding OnROIClick}"
ToolTip.Tip="Region of interest selection over layer.
&#x0a;(NS): Not selected
Expand Down
1 change: 0 additions & 1 deletion UVtools.WPF/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@ protected override void OnKeyDown(KeyEventArgs e)
TooltipOverlayText = "Pixel editing is on:\n" +
"» Click over a pixel to draw\n" +
"» Hold CTRL to clear pixels";

UpdatePixelEditorCursor();
}
else
Expand Down
9 changes: 5 additions & 4 deletions UVtools.WPF/Structures/PixelPicker.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System.Drawing;
using ReactiveUI;
using UVtools.Core.Objects;

namespace UVtools.WPF.Structures
{
public class PixelPicker : ReactiveObject
public class PixelPicker : BindableBase
{
private bool _isSet;
private Point _location = new Point(0,0);
Expand All @@ -12,19 +13,19 @@ public class PixelPicker : ReactiveObject
public bool IsSet
{
get => _isSet;
private set => this.RaiseAndSetIfChanged(ref _isSet, value);
private set => RaiseAndSetIfChanged(ref _isSet, value);
}

public Point Location
{
get => _location;
set => this.RaiseAndSetIfChanged(ref _location, value);
set => RaiseAndSetIfChanged(ref _location, value);
}

public byte Brightness
{
get => _brightness;
private set => this.RaiseAndSetIfChanged(ref _brightness, value);
private set => RaiseAndSetIfChanged(ref _brightness, value);
}

public void Set(Point location, byte brightness)
Expand Down
3 changes: 1 addition & 2 deletions UVtools.WPF/UVtools.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
<RepositoryUrl>https://github.com/sn4k3/UVtools</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<Nullable>enable</Nullable>
<Version>1.0.0.1</Version>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
<Version>1.0.0.2</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
32 changes: 15 additions & 17 deletions UVtools.WPF/Windows/SettingsWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@

<StackPanel Orientation="Horizontal" Margin="15,0,15,15" Spacing="10">
<NumericUpDown Width="60"
Minimum="1"
Minimum="0"
Maximum="254"
Value="{Binding Settings.Issues.IslandBinaryThreshold}"
/>
Expand Down Expand Up @@ -718,23 +718,21 @@
/>
</StackPanel>


<StackPanel Orientation="Horizontal" Margin="15,0,15,15" Spacing="10">
<NumericUpDown Width="60"
Minimum="0.05"
Maximum="0.95"
Increment="0.05"
Value="{Binding Settings.Issues.IslandRequiredPixelsToSupportMultiplier}"

<StackPanel Orientation="Horizontal" Margin="15,0,15,15" Spacing="10">
<NumericUpDown Width="60"
Minimum="50"
Maximum="255"
Value="{Binding Settings.Issues.IslandRequiredPixelBrightnessToSupport}"
/>
<TextBlock
VerticalAlignment="Center"
Text="Supporting safe pixels required over a multiplier on island pixels"
ToolTip.Tip="An island supported by at least it pixels multiplied by this value will always be considered supported.
&#x0a;Formula: Supporting pixels >= Island pixels * this value"
<TextBlock
VerticalAlignment="Center"
Text="Minimum intensity of a supporting pixel before it is considered safe"
ToolTip.Tip="Pixels below this threshold will not be considered when counting supporting pixels for an island."
/>
</StackPanel>
</StackPanel>

<!--
<!--
<StackPanel Orientation="Horizontal" Margin="15,0,15,15" Spacing="10">
<NumericUpDown Width="60"
Minimum="1"
Expand Down Expand Up @@ -1018,9 +1016,9 @@
<CheckBox IsChecked="{Binding Settings.LayerRepair.RepairIslands}"
Margin="15,0" Content="Attempt to repair islands by default"/>
<CheckBox IsChecked="{Binding Settings.LayerRepair.RepairResinTraps}"
Margin="15,0" Content="Remove empty layers by default"/>
<CheckBox IsChecked="{Binding Settings.LayerRepair.RemoveEmptyLayers}"
Margin="15,0" Content="Attempt to repair resin traps by default"/>
<CheckBox IsChecked="{Binding Settings.LayerRepair.RemoveEmptyLayers}"
Margin="15,0" Content="Remove empty layers by default"/>

<StackPanel Orientation="Horizontal" Margin="15,0" Spacing="10">
<NumericUpDown
Expand Down

0 comments on commit 78a5e0f

Please sign in to comment.