CompilerView heat work

This commit is contained in:
Justin Swanson 2019-11-29 17:35:47 -06:00
parent aa49114264
commit 25e1023e40

View File

@ -21,7 +21,7 @@
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="5" /> <ColumnDefinition Width="5" />
<ColumnDefinition Width="2*" /> <ColumnDefinition Width="2*" />
<ColumnDefinition Width="1" /> <ColumnDefinition Width="5" />
<ColumnDefinition Width="5*" /> <ColumnDefinition Width="5*" />
<ColumnDefinition Width="5" /> <ColumnDefinition Width="5" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
@ -31,27 +31,42 @@
Grid.Column="0" Grid.Column="0"
Grid.ColumnSpan="5" Grid.ColumnSpan="5"
PercentCompleted="{Binding PercentCompleted}" /> PercentCompleted="{Binding PercentCompleted}" />
<local:DetailImageView <Border
Title="{Binding CurrentModlistSettings.ModListName}"
Grid.Row="1"
Grid.Column="3"
Author="{Binding CurrentModlistSettings.AuthorText}"
BorderThickness="0"
Description="{Binding CurrentModlistSettings.Description}"
Image="{Binding Image}" />
<Rectangle
x:Name="ControlVerticalThinSeparator"
Grid.Row="1"
Grid.Column="2"
Width="1"
HorizontalAlignment="Center"
Fill="{StaticResource DarkBackgroundBrush}"
SnapsToDevicePixels="True" />
<Rectangle
x:Name="ModlistDetailsBackground" x:Name="ModlistDetailsBackground"
Grid.Row="1" Grid.Row="1"
Grid.Column="1" Grid.Column="1"
Fill="{StaticResource WindowBackgroundBrush}" /> Grid.ColumnSpan="2"
Margin="1,1,5,0"
Background="{StaticResource WindowBackgroundBrush}"
BorderThickness="0,0,1,1">
<Border.BorderBrush>
<LinearGradientBrush StartPoint="1,0" EndPoint="0,0">
<GradientStop Offset="0.5" Color="{StaticResource DarkBackgroundColor}" />
<GradientStop Offset="1" Color="{StaticResource WindowBackgroundColor}" />
</LinearGradientBrush>
</Border.BorderBrush>
</Border>
<Border
x:Name="ModlistDetailsHeatBorder"
Grid.Row="1"
Grid.Column="1"
Grid.ColumnSpan="2"
Margin="1,1,5,0"
BorderBrush="{StaticResource HeatedBorderBrush}"
BorderThickness="1"
Opacity="{Binding PercentCompleted}" />
<Border
Grid.Row="1"
Grid.Column="3"
BorderBrush="{StaticResource BorderInterestBrush}"
BorderThickness="1,0,1,1">
<local:DetailImageView
Title="{Binding CurrentModlistSettings.ModListName}"
Author="{Binding CurrentModlistSettings.AuthorText}"
BorderThickness="0"
Description="{Binding CurrentModlistSettings.Description}"
Image="{Binding Image}" />
</Border>
<!-- Comes after image area so shadow can overlay --> <!-- Comes after image area so shadow can overlay -->
<local:TopProgressView <local:TopProgressView
Title="{Binding CurrentModlistSettings.ModListName, Mode=OneWay}" Title="{Binding CurrentModlistSettings.ModListName, Mode=OneWay}"
@ -143,16 +158,6 @@
ToolTip="Path to a readme file." /> ToolTip="Path to a readme file." />
</StackPanel> </StackPanel>
</ScrollViewer> </ScrollViewer>
<Rectangle
x:Name="ControlTopThinSeparator"
Grid.Row="2"
Grid.Column="0"
Grid.ColumnSpan="5"
Height="1"
Margin="25,0"
VerticalAlignment="Top"
Fill="{StaticResource DarkBackgroundBrush}"
SnapsToDevicePixels="True" />
<Border <Border
x:Name="BottomBarBackground" x:Name="BottomBarBackground"
Grid.Row="2" Grid.Row="2"
@ -236,7 +241,7 @@
Grid.ColumnSpan="5" Grid.ColumnSpan="5"
Margin="5" Margin="5"
Visibility="{Binding Compiling, Converter={StaticResource bool2VisibilityConverter}, FallbackValue=Hidden}"> Visibility="{Binding Compiling, Converter={StaticResource bool2VisibilityConverter}, FallbackValue=Hidden}">
<local:LogCpuView /> <local:LogCpuView ProgressPercent="{Binding PercentCompleted}" />
</Grid> </Grid>
</Grid> </Grid>
</UserControl> </UserControl>