Skip to content

Commit

Permalink
MT: tweak hash tool UI slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tkachov committed Apr 30, 2024
1 parent 034d571 commit d80014c
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions ModdingTool/Windows/HashToolWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="Hash Tool" Height="122" Width="500" MinHeight="122" MinWidth="500" ResizeMode="NoResize">
Title="Hash Tool" Height="112" Width="500" MinHeight="112" MinWidth="500" ResizeMode="NoResize">
<Border BorderThickness="0,1,0,0" BorderBrush="#EEE">
<Grid>
<Grid Height="22" Margin="7,7,7,0" VerticalAlignment="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>

<TextBox x:Name="InputTextBox" Text="" Grid.Column="0" VerticalAlignment="Top" Height="22" Padding="1" KeyUp="InputTextBox_KeyUp" />
Expand All @@ -26,30 +25,32 @@
</Style>
</TextBlock.Style>
</TextBlock>

<CheckBox IsChecked="{Binding NormalizeInput}" Grid.Column="1" HorizontalAlignment="Left" Margin="15,3,0,0" VerticalAlignment="Top">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Normalize" Margin="2,0,0,0" />
</StackPanel>
</CheckBox>
</Grid>

<Grid Margin="0,40,0,0" VerticalAlignment="Stretch" Background="#EEE">
<Grid Margin="0,36,0,0" VerticalAlignment="Stretch" Background="#EEE">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="7" />
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="50" />
<ColumnDefinition Width="130" />
<ColumnDefinition Width="70" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="50" />
<ColumnDefinition Width="70" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="7" />
</Grid.ColumnDefinitions>

<TextBlock Text="CRC64:" Grid.Column="1" Margin="3,12,0,0" VerticalAlignment="Top" />
<TextBox x:Name="Crc64TextBox" Text="" Grid.Column="2" VerticalAlignment="Top" Height="22" Padding="1" Margin="0,10,0,0" IsReadOnly="True" />
<CheckBox IsChecked="{Binding NormalizeInput}" Grid.Column="1" HorizontalAlignment="Left" Margin="-1,10,0,0" VerticalAlignment="Top">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Normalize" Margin="2,0,0,0" />
</StackPanel>
</CheckBox>

<TextBlock Text="CRC64:" Grid.Column="3" Margin="3,9,0,0" VerticalAlignment="Top" />
<TextBox x:Name="Crc64TextBox" Text="" Grid.Column="4" VerticalAlignment="Top" Height="22" Padding="1" Margin="0,7,0,0" IsReadOnly="True" />

<TextBlock Text="CRC32:" Grid.Column="4" Margin="3,12,0,0" VerticalAlignment="Top" />
<TextBox x:Name="Crc32TextBox" Text="" Grid.Column="5" VerticalAlignment="Top" Height="22" Padding="1" Margin="0,10,0,0" IsReadOnly="True" />
<TextBlock Text="CRC32:" Grid.Column="6" Margin="3,9,0,0" VerticalAlignment="Top" />
<TextBox x:Name="Crc32TextBox" Text="" Grid.Column="7" VerticalAlignment="Top" Height="22" Padding="1" Margin="0,7,0,0" IsReadOnly="True" />
</Grid>
</Grid>
</Border>
Expand Down

0 comments on commit d80014c

Please sign in to comment.