Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated UI using Material Design. Rewritten in WPF.
- Loading branch information
1 parent
8028223
commit d5c43cb
Showing
24 changed files
with
1,358 additions
and
4,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28307.329 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unreal Binary Builder", "Unreal Binary Builder\Unreal Binary Builder.csproj", "{EF664300-FF7C-44AC-880D-D0A4FAC9F36F}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{EF664300-FF7C-44AC-880D-D0A4FAC9F36F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{EF664300-FF7C-44AC-880D-D0A4FAC9F36F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{EF664300-FF7C-44AC-880D-D0A4FAC9F36F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{EF664300-FF7C-44AC-880D-D0A4FAC9F36F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {6887BFB1-1DC5-47ED-9956-32536E559C00} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Application x:Class="Unreal_Binary_Builder.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:Unreal_Binary_Builder" | ||
DispatcherUnhandledException="Application_DispatcherUnhandledException" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Dark.xaml" /> | ||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" /> | ||
|
||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Blue.xaml" /> | ||
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Purple.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Windows; | ||
|
||
namespace Unreal_Binary_Builder | ||
{ | ||
/// <summary> | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
{ | ||
private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) | ||
{ | ||
MessageBox.Show("An unhandled exception just occurred: " + e.Exception.Message, "Exception", MessageBoxButton.OK, MessageBoxImage.Error); | ||
e.Handled = true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
<UserControl x:Class="Unreal_Binary_Builder.LogViewer" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:Unreal_Binary_Builder" | ||
mc:Ignorable="d" | ||
Height="450" Width="800"> | ||
<UserControl.Resources> | ||
<Style TargetType="ItemsControl" x:Key="LogViewerStyle"> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate> | ||
<ScrollViewer CanContentScroll="True"> | ||
<ItemsPresenter/> | ||
</ScrollViewer> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
|
||
<Setter Property="ItemsPanel"> | ||
<Setter.Value> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel IsItemsHost="True"/> | ||
</ItemsPanelTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
<DataTemplate DataType="{x:Type local:LogEntry}"> | ||
<Grid IsSharedSizeScope="True"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition SharedSizeGroup="Date" Width="Auto"/> | ||
<ColumnDefinition/> | ||
</Grid.ColumnDefinitions> | ||
|
||
<TextBlock Text="{Binding DateTime}" Grid.Column="0" | ||
FontWeight="Bold" Margin="5,0,5,0"/> | ||
|
||
<TextBlock Text="{Binding Message}" Grid.Column="2" Foreground="{Binding MessageColor}" | ||
TextWrapping="Wrap"/> | ||
</Grid> | ||
</DataTemplate> | ||
|
||
<!--<DataTemplate DataType="{x:Type local:CollapsibleLogEntry}"> | ||
<Grid IsSharedSizeScope="True"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition SharedSizeGroup="Index" Width="Auto"/> | ||
<ColumnDefinition SharedSizeGroup="Date" Width="Auto"/> | ||
<ColumnDefinition/> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition/> | ||
</Grid.RowDefinitions> | ||
<TextBlock Text="{Binding DateTime}" Grid.Column="0" | ||
FontWeight="Bold" Margin="5,0,5,0"/> | ||
<TextBlock Text="{Binding Index}" Grid.Column="1" | ||
FontWeight="Bold" Margin="0,0,2,0" /> | ||
<TextBlock Text="{Binding Message}" Grid.Column="2" | ||
TextWrapping="Wrap"/> | ||
<ToggleButton x:Name="Expander" Grid.Row="1" Grid.Column="0" | ||
VerticalAlignment="Top" Content="+" HorizontalAlignment="Right"/> | ||
<ItemsControl ItemsSource="{Binding Contents}" Style="{StaticResource LogViewerStyle}" | ||
Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" | ||
x:Name="Contents" Visibility="Collapsed"/> | ||
</Grid> | ||
<DataTemplate.Triggers> | ||
<Trigger SourceName="Expander" Property="IsChecked" Value="True"> | ||
<Setter TargetName="Contents" Property="Visibility" Value="Visible"/> | ||
<Setter TargetName="Expander" Property="Content" Value="-"/> | ||
</Trigger> | ||
</DataTemplate.Triggers> | ||
</DataTemplate>--> | ||
</UserControl.Resources> | ||
|
||
<DockPanel> | ||
<TextBlock Text="{Binding Count, StringFormat='{}{0} Items'}" | ||
DockPanel.Dock="Top" Visibility="Collapsed"/> | ||
|
||
<Grid> | ||
<Rectangle Fill="#FF111111"/> | ||
<ItemsControl ItemsSource="{Binding}" Style="{StaticResource LogViewerStyle}" Margin="10"> | ||
<ItemsControl.Template> | ||
<ControlTemplate> | ||
<ScrollViewer CanContentScroll="True" ScrollChanged="ScrollViewer_ScrollChanged"> | ||
<ItemsPresenter/> | ||
</ScrollViewer> | ||
</ControlTemplate> | ||
</ItemsControl.Template> | ||
<ItemsControl.ItemsPanel> | ||
<ItemsPanelTemplate> | ||
<VirtualizingStackPanel IsItemsHost="True"/> | ||
</ItemsPanelTemplate> | ||
</ItemsControl.ItemsPanel> | ||
</ItemsControl> | ||
</Grid> | ||
|
||
</DockPanel> | ||
</UserControl> |
Oops, something went wrong.