|
584 | 584 | <TabItem Header="Tools" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black">
|
585 | 585 | <Grid>
|
586 | 586 | <Grid.RowDefinitions>
|
587 |
| - <RowDefinition Height="50*" /> |
| 587 | + <RowDefinition Height="15*" /> |
588 | 588 | <RowDefinition Height="50*" />
|
589 | 589 | </Grid.RowDefinitions>
|
590 | 590 | <!-- 1st part -->
|
591 |
| - |
| 591 | + <Grid Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left"> |
| 592 | + <StackPanel Orientation="Vertical" Margin="10"> |
| 593 | + <Border HorizontalAlignment="Left" VerticalAlignment="Top"> |
| 594 | + <StackPanel Orientation="Horizontal" Margin="10"> |
| 595 | + <Label Content="Folders" Foreground="{DynamicResource ButtonForeground}" /> |
| 596 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenEditorLogsFolder" Margin="0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenEditorLogsFolder_Click" ToolTip="Browse Editor logs folder"> |
| 597 | + <Label Content="_Editor Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
| 598 | + </Button> |
| 599 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenPlayerLogs" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenPlayerLogs_Click" ToolTip="Browse Player logs folder"> |
| 600 | + <Label Content="_Player Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
| 601 | + </Button> |
| 602 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenCrashLogs" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenCrashLogs_Click" ToolTip="Browse Crash logs folder"> |
| 603 | + <Label Content="_Crash Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
| 604 | + </Button> |
| 605 | + <Button Style="{StaticResource CustomButton}" x:Name="btnAssetPackages" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" ToolTip="Browse AssetStore downloads folder" Click="BtnAssetPackages_Click"> |
| 606 | + <Label Content="A_sset packages" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
| 607 | + </Button> |
| 608 | + </StackPanel> |
| 609 | + </Border> |
| 610 | + <Border HorizontalAlignment="Left" VerticalAlignment="Top"> |
| 611 | + <StackPanel Orientation="Horizontal" Margin="10"> |
| 612 | + <Label Content="Tools" Foreground="{DynamicResource ButtonForeground}" /> |
| 613 | + <Button Style="{StaticResource CustomButton}" x:Name="btnOpenADBLogCat" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenADBLogCat_Click" ToolTip="Start ADB logcat commandline"> |
| 614 | + <Label Content="_ADB logcat" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
| 615 | + </Button> |
| 616 | + <Button Style="{StaticResource CustomButton}" x:Name="btnAdbBindWifi" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnAdbBindWifi_Click" IsEnabled="False" ToolTip="Bind Android device to wireless ADB"> |
| 617 | + <Label Content="_Bind Wifi" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
| 618 | + </Button> |
| 619 | + </StackPanel> |
| 620 | + </Border> |
| 621 | + </StackPanel> |
| 622 | + </Grid> |
592 | 623 | <!-- 2nd part -->
|
593 |
| - <Grid Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left"> |
594 |
| - <Border> |
595 |
| - <StackPanel Orientation="Horizontal" Margin="10"> |
596 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnOpenEditorLogsFolder" Margin="0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenEditorLogsFolder_Click" ToolTip="Open Editor logs folder in Explorer"> |
597 |
| - <Label Content="_Editor Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
598 |
| - </Button> |
599 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnOpenPlayerLogs" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenPlayerLogs_Click" ToolTip="Open Player logs folder in Explorer"> |
600 |
| - <Label Content="_Player Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
601 |
| - </Button> |
602 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnOpenCrashLogs" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenCrashLogs_Click" ToolTip="Open Crash logs folder in Explorer"> |
603 |
| - <Label Content="_Crash Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
604 |
| - </Button> |
605 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnAssetPackages" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" ToolTip="Open assetstore downloads folder in Explorer" Click="BtnAssetPackages_Click"> |
606 |
| - <Label Content="A_sset packages" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
607 |
| - </Button> |
608 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnOpenADBLogCat" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnOpenADBLogCat_Click" ToolTip="Start ADB logcat commandline"> |
609 |
| - <Label Content="_ADB logcat" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
610 |
| - </Button> |
611 |
| - <Button Style="{StaticResource CustomButton}" x:Name="btnAdbBindWifi" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" Click="BtnAdbBindWifi_Click" IsEnabled="False" ToolTip="Bind Android device to wireless ADB"> |
612 |
| - <Label Content="_Bind Wifi" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" /> |
613 |
| - </Button> |
614 |
| - </StackPanel> |
615 |
| - </Border> |
| 624 | + <Grid Grid.Row="1" VerticalAlignment="Top"> |
| 625 | + <StackPanel Orientation="Horizontal" Margin="0"> |
| 626 | + <Label Content="Build Report" Foreground="{DynamicResource ButtonForeground}" HorizontalAlignment="Left" VerticalAlignment="Top" VerticalContentAlignment="Center" /> |
| 627 | + <Button x:Name="btnClearBuildReport" Style="{StaticResource CustomButton}" ToolTip="Clear report" Content="🗑" Height="22" Width="22" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="16" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="0,4,10,0" Padding="1,-2,1,1" BorderBrush="{x:Null}" Click="BtnClearBuildReport_Click" /> |
| 628 | + <Button x:Name="btnRefreshBuildReport" Style="{StaticResource CustomButton}" ToolTip="Get latest Build Report from Editor.log" Content="⟳" Height="22" Width="22" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="16" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="0,4,10,0" Padding="1,-2,1,1" BorderBrush="{x:Null}" Click="BtnRefreshBuildReport_Click"/> |
| 629 | + <!--<CheckBox x:Name="chkAutoUpdateBuildReport" Content="AutoUpdate" Foreground="{DynamicResource ButtonForeground}" Margin="0,0,0,3" ToolTip="" HorizontalAlignment="Right" VerticalAlignment="Top" Height="26" VerticalContentAlignment="Center" IsEnabled="False"/>--> |
| 630 | + </StackPanel> |
| 631 | + <DataGrid x:Name="gridBuildReport" SelectionMode="Single" Margin="4,30,2,0" Background="{x:Null}" BorderBrush="{x:Null}" ColumnHeaderStyle="{StaticResource HeaderStyle}" Padding="0" HorizontalScrollBarVisibility="Disabled" HeadersVisibility="Column" Foreground="#FFD8D8D8" HorizontalGridLinesBrush="#4C000000" VerticalGridLinesBrush="#19000000" AutoGenerateColumns="False" VerticalAlignment="Top"> |
| 632 | + <DataGrid.Columns> |
| 633 | + <DataGridTextColumn Binding="{Binding Size}" ClipboardContentBinding="{x:Null}" Header="Size" IsReadOnly="True" MinWidth="75"/> |
| 634 | + <DataGridTextColumn Binding="{Binding Percentage}" ClipboardContentBinding="{x:Null}" Header="%" IsReadOnly="True" MinWidth="55" /> |
| 635 | + <DataGridTextColumn Binding="{Binding Path}" ClipboardContentBinding="{x:Null}" Header="Path" IsReadOnly="True"/> |
| 636 | + </DataGrid.Columns> |
| 637 | + |
| 638 | + <!-- sample data for testing --> |
| 639 | + <local:BuildReport Size="10.0 mb" Percentage="50.0%" Path="Assets/Textures/sample.png" /> |
| 640 | + </DataGrid> |
| 641 | + |
616 | 642 | </Grid>
|
| 643 | + |
617 | 644 | </Grid>
|
618 | 645 | </TabItem>
|
619 | 646 |
|
|
0 commit comments