Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.WPF/Windows/SettingsWindow.axaml')
-rw-r--r--UVtools.WPF/Windows/SettingsWindow.axaml65
1 files changed, 46 insertions, 19 deletions
diff --git a/UVtools.WPF/Windows/SettingsWindow.axaml b/UVtools.WPF/Windows/SettingsWindow.axaml
index a895c9b..51129dd 100644
--- a/UVtools.WPF/Windows/SettingsWindow.axaml
+++ b/UVtools.WPF/Windows/SettingsWindow.axaml
@@ -519,7 +519,9 @@
<StackPanel Orientation="Vertical">
<TextBlock Classes="GroupBoxHeader" Text="Layer colors"/>
- <Grid Margin="10" RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto" ColumnDefinitions="Auto,Auto,Auto,Auto,*">
+ <Grid Margin="10"
+ RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto,10,Auto"
+ ColumnDefinitions="Auto,Auto,Auto,Auto,*">
<!--Tooltip overlay-->
<TextBlock Grid.Row="0" Grid.Column="0"
@@ -533,15 +535,13 @@
VerticalAlignment="Center"
Background="{Binding Settings.LayerPreview.TooltipOverlayBackgroundBrush}"
Command="{Binding SelectColor}"
- CommandParameter="TooltipOverlayBackgroundColor"
- />
+ CommandParameter="TooltipOverlayBackgroundColor"/>
<CheckBox Grid.Row="0" Grid.Column="4"
Margin="10,0,0,0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Content="Show by default"
- IsChecked="{Binding Settings.LayerPreview.TooltipOverlay}"
- />
+ IsChecked="{Binding Settings.LayerPreview.TooltipOverlay}"/>
<!--Print volume boundary-->
@@ -557,16 +557,13 @@
VerticalAlignment="Center"
Background="{Binding Settings.LayerPreview.VolumeBoundsOutlineBrush}"
Command="{Binding SelectColor}"
- CommandParameter="VolumeBoundsOutlineColor"
- />
+ CommandParameter="VolumeBoundsOutlineColor"/>
<NumericUpDown Grid.Row="2" Grid.Column="2"
Margin="10,0,0,0"
VerticalAlignment="Center"
-
Minimum="1"
Maximum="50"
- Value="{Binding Settings.LayerPreview.VolumeBoundsOutlineThickness}"
- />
+ Value="{Binding Settings.LayerPreview.VolumeBoundsOutlineThickness}"/>
<TextBlock Grid.Row="2" Grid.Column="3"
Margin="5,0,0,0"
VerticalAlignment="Center"
@@ -576,8 +573,7 @@
HorizontalAlignment="Right"
VerticalAlignment="Center"
Content="Show by default"
- IsChecked="{Binding Settings.LayerPreview.VolumeBoundsOutline}"
- />
+ IsChecked="{Binding Settings.LayerPreview.VolumeBoundsOutline}"/>
<!--Layer boundary-->
<TextBlock Grid.Row="4" Grid.Column="0"
@@ -641,7 +637,7 @@
IsChecked="{Binding Settings.LayerPreview.ContourBoundsOutline}"/>
- <!--Hallow area boundary-->
+ <!--Hollow area boundary-->
<TextBlock Grid.Row="8" Grid.Column="0"
VerticalAlignment="Center"
Text="Hollow area outline:"/>
@@ -672,7 +668,7 @@
Content="Show by default"
IsChecked="{Binding Settings.LayerPreview.HollowOutline}"/>
- <!--Blob boundary-->
+ <!--Centroids boundary-->
<TextBlock Grid.Row="10" Grid.Column="0"
VerticalAlignment="Center"
Text="Centroids:"/>
@@ -707,12 +703,43 @@
IsChecked="{Binding Settings.LayerPreview.CentroidOutline}"/>
</StackPanel>
+ <!-- Triangulate -->
+ <TextBlock Grid.Row="12" Grid.Column="0"
+ VerticalAlignment="Center"
+ Text="Triangulate:"/>
+ <Button Grid.Row="12" Grid.Column="1"
+ Margin="10,0,0,0"
+ Padding="10"
+ BorderBrush="Black"
+ BorderThickness="2"
+ VerticalAlignment="Center"
+ Background="{Binding Settings.LayerPreview.TriangulateOutlineBrush}"
+ Command="{Binding SelectColor}"
+ CommandParameter="TriangulateOutlineColor"/>
+ <NumericUpDown Grid.Row="12" Grid.Column="2"
+ Margin="10,0,0,0"
+ VerticalAlignment="Center"
+ Minimum="1"
+ Maximum="50"
+ Value="{Binding Settings.LayerPreview.TriangulateOutlineLineThickness}"/>
+ <TextBlock Grid.Row="12" Grid.Column="3"
+ Margin="5,0,0,0"
+ VerticalAlignment="Center"
+ Text="Line thickness"/>
+
+ <StackPanel
+ HorizontalAlignment="Right"
+ VerticalAlignment="Center"
+ Grid.Row="12" Grid.Column="3" Grid.ColumnSpan="2" Orientation="Horizontal" Spacing="10">
+ <CheckBox Content="Show triangle count"
+ IsChecked="{Binding Settings.LayerPreview.TriangulateOutlineShowCount}"/>
+ </StackPanel>
<!--Masks-->
- <TextBlock Grid.Row="12" Grid.Column="0"
+ <TextBlock Grid.Row="14" Grid.Column="0"
VerticalAlignment="Center"
Text="Mask area outline:"/>
- <Button Grid.Row="12" Grid.Column="1"
+ <Button Grid.Row="14" Grid.Column="1"
Margin="10,0,0,0"
Padding="10"
BorderBrush="Black"
@@ -721,18 +748,18 @@
Background="{Binding Settings.LayerPreview.MaskOutlineBrush}"
Command="{Binding SelectColor}"
CommandParameter="MaskOutlineColor"/>
- <NumericUpDown Grid.Row="12" Grid.Column="2"
+ <NumericUpDown Grid.Row="14" Grid.Column="2"
Margin="10,0,0,0"
VerticalAlignment="Center"
Minimum="-1"
Maximum="127"
Value="{Binding Settings.LayerPreview.MaskOutlineLineThickness}"/>
- <TextBlock Grid.Row="12" Grid.Column="3"
+ <TextBlock Grid.Row="14" Grid.Column="3"
Margin="5,0,0,0"
VerticalAlignment="Center"
ToolTip.Tip="Set -1 to fill the area"
Text="Line thickness"/>
- <CheckBox Grid.Row="12" Grid.Column="4"
+ <CheckBox Grid.Row="14" Grid.Column="4"
Margin="10,0,0,0"
HorizontalAlignment="Right"
VerticalAlignment="Center"