histogram implemented
This commit is contained in:
@@ -1,26 +1,43 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:LindtLeerformPlugin.ViewModels"
|
||||
xmlns:v="using:LindtLeerformPlugin.Views"
|
||||
x:Class="LindtLeerformPlugin.Views.CellHistogramWindow"
|
||||
x:DataType="vm:CellHistogramViewModel"
|
||||
Title="{Binding Title}"
|
||||
Width="720" Height="600"
|
||||
Width="820" Height="560"
|
||||
Background="#1A1A1A"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
WindowStartupLocation="CenterOwner"
|
||||
ShowInTaskbar="False"
|
||||
CanResize="True">
|
||||
|
||||
<ScrollViewer>
|
||||
<StackPanel Spacing="12" Margin="16">
|
||||
<TextBlock Text="Reference (learned)" FontWeight="Bold" Foreground="White" FontSize="14" />
|
||||
<Border Background="#0A0A0A" Padding="4">
|
||||
<Image Source="{Binding ReferenceImage}" Stretch="Uniform" Height="220" />
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="Selected cell" FontWeight="Bold" Foreground="White" FontSize="14" Margin="0,8,0,0" />
|
||||
<Border Background="#0A0A0A" Padding="4">
|
||||
<Image Source="{Binding CellImage}" Stretch="Uniform" Height="220" />
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="{Binding DistanceText}" Foreground="LightGray" FontSize="13" Margin="0,8,0,0" />
|
||||
<DockPanel Margin="12">
|
||||
<StackPanel DockPanel.Dock="Top" Spacing="4" Margin="0,0,0,8">
|
||||
<TextBlock Text="Drag the gray dashed handles to edit the AVERAGE spline. Use 'Override Cell' to give this cell its own spline."
|
||||
Foreground="LightGray" FontSize="12" TextWrapping="Wrap" />
|
||||
<TextBlock Text="A cell is BAD when any histogram bar rises above its active spline."
|
||||
Foreground="#888888" FontSize="11" TextWrapping="Wrap" />
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Spacing="8" Margin="0,12,0,0">
|
||||
<Button Content="Override Cell"
|
||||
Command="{Binding CreateOverrideCommand}"
|
||||
IsVisible="{Binding !HasOverride}"
|
||||
Background="#FF8C00" Foreground="Black" FontWeight="Bold" />
|
||||
<Button Content="Remove Override"
|
||||
Command="{Binding RemoveOverrideCommand}"
|
||||
IsVisible="{Binding HasOverride}"
|
||||
Background="#8B0000" Foreground="White" FontWeight="Bold" />
|
||||
<TextBlock Text="{Binding VerdictText}" Foreground="LightGray"
|
||||
VerticalAlignment="Center" FontSize="13" />
|
||||
</StackPanel>
|
||||
|
||||
<Border Background="#0A0A0A" Padding="2">
|
||||
<v:SplineHistogramEditor x:Name="Editor"
|
||||
Histogram="{Binding CellHistogram}"
|
||||
CellSpline="{Binding CellSpline, Mode=TwoWay}"
|
||||
AverageSpline="{Binding AverageSpline, Mode=TwoWay}"
|
||||
Bins="{Binding Bins}" />
|
||||
</Border>
|
||||
</DockPanel>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user