Skip to content

Commit 049d68f

Browse files
committed
add checkboxes to settings tab, add Updates class
1 parent 06c9bd9 commit 049d68f

File tree

3 files changed

+34
-8
lines changed

3 files changed

+34
-8
lines changed

UnityLauncherPro/MainWindow.xaml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,8 @@
474474
<DataGrid x:Name="dataGridUpdates" SelectionMode="Single" Margin="4,30,2,42" Background="{x:Null}" BorderBrush="{x:Null}" ColumnHeaderStyle="{StaticResource HeaderStyle}" Padding="0" HorizontalScrollBarVisibility="Disabled" HeadersVisibility="Column" Foreground="#FFD8D8D8" HorizontalGridLinesBrush="#4C000000" VerticalGridLinesBrush="#19000000">
475475

476476
<DataGrid.Columns>
477+
<DataGridTextColumn Binding="{Binding ReleaseDate}" ClipboardContentBinding="{x:Null}" Header="ReleaseDate" IsReadOnly="True"/>
477478
<DataGridTextColumn Binding="{Binding Version}" ClipboardContentBinding="{x:Null}" Header="Version" IsReadOnly="True" MinWidth="123"/>
478-
<DataGridTextColumn Binding="{Binding Path}" ClipboardContentBinding="{x:Null}" Header="Path" IsReadOnly="True"/>
479-
<DataGridTextColumn Binding="{Binding Installed}" ClipboardContentBinding="{x:Null}" Header="Installed" IsReadOnly="True"/>
480479
</DataGrid.Columns>
481480

482481
<!-- right click context menu -->
@@ -485,9 +484,9 @@
485484
<MenuItem Header="Copy Unity Version" />
486485
</ContextMenu>
487486
</DataGrid.ContextMenu>
487+
<local:Updates ReleaseDate="2020-10-10" Version="5000.1.2.3"/>
488488

489489
<!-- sample data for testing -->
490-
<local:UnityInstallations Version="3000.1.2f1" Path="c:/proggies/unity3000" Installed="12.12.2020" />
491490
</DataGrid>
492491

493492
<!-- bottom buttoms row -->
@@ -536,7 +535,6 @@
536535
</Border>
537536
</Grid>
538537
</Grid>
539-
540538
</TabItem>
541539

542540
<!-- Tab: Settings -->
@@ -557,15 +555,32 @@
557555

558556
<!-- top labels -->
559557
<Label Grid.Row="0" Content="Unity Installation Parent Folders" Foreground="{DynamicResource ButtonForeground}" HorizontalAlignment="Left" VerticalAlignment="Bottom"></Label>
560-
<Label Grid.Row="0" Content=".. Installations" Foreground="{DynamicResource ButtonForeground}" HorizontalAlignment="Right" VerticalAlignment="Bottom"></Label>
558+
<Label Grid.Row="0" Content="Found .. Installations" Foreground="{DynamicResource ButtonForeground}" HorizontalAlignment="Right" VerticalAlignment="Bottom"></Label>
561559
<!-- locations list -->
562560
<ListBox Grid.Row="1" Background="#FF3C3C3C" Margin="4,0,2,0" />
563561
<!-- locations add/remove -->
564-
<Button Grid.Row="2" Style="{StaticResource CustomButton}" x:Name="btnASASDFasdf" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="5,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center">
565-
<Label Foreground="{DynamicResource ButtonForeground}">_asdf</Label>
566-
</Button>
562+
<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0" >
563+
<Button Style="{StaticResource CustomButton}" x:Name="btnASASDFasdf" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="5,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center">
564+
<Label Foreground="{DynamicResource ButtonForeground}">_Add Folder</Label>
565+
</Button>
566+
<Button Style="{StaticResource CustomButton}" x:Name="btnASASDFasdf2" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="5,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center">
567+
<Label Foreground="{DynamicResource ButtonForeground}">_Remove Folder</Label>
568+
</Button>
569+
</StackPanel>
567570
<!-- settings-->
571+
<StackPanel Grid.Row="3" Orientation="Vertical" Margin="5,10,3,3" >
572+
<CheckBox Content="Minimize to taskbar" Foreground="{DynamicResource ButtonForeground}"></CheckBox>
573+
<CheckBox Content="Register Explorer context menu" Foreground="{DynamicResource ButtonForeground}"></CheckBox>
574+
<CheckBox Content="Close after opening project" Foreground="{DynamicResource ButtonForeground}"></CheckBox>
575+
<CheckBox Content="Close after launching from Explorer" Foreground="{DynamicResource ButtonForeground}"></CheckBox>
576+
<CheckBox Content="Show Arguments Column" Foreground="{DynamicResource ButtonForeground}"></CheckBox>
577+
<CheckBox Content="Show Git Branch Column" Foreground="{DynamicResource ButtonForeground}"></CheckBox>
578+
</StackPanel>
579+
568580
<!-- links-->
581+
<Button Grid.Row="4" Style="{StaticResource CustomButton}" x:Name="btnASASDFasdf22" Background="{DynamicResource ButtonBackground}" Foreground="{DynamicResource ButtonForeground}" Margin="5,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Center">
582+
<Label Foreground="{DynamicResource ButtonForeground}">_View in Github</Label>
583+
</Button>
569584

570585
</Grid>
571586
</TabItem>

UnityLauncherPro/UnityLauncherPro.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
<SubType>Designer</SubType>
7777
</ApplicationDefinition>
7878
<Compile Include="UnityInstallations.cs" />
79+
<Compile Include="Updates.cs" />
7980
<Page Include="Resources\Colors.xaml">
8081
<SubType>Designer</SubType>
8182
<Generator>MSBuild:Compile</Generator>

UnityLauncherPro/Updates.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
3+
namespace UnityLauncherPro
4+
{
5+
public class Updates
6+
{
7+
public string Version { set; get; }
8+
public DateTime ReleaseDate { set; get; }
9+
}
10+
}

0 commit comments

Comments
 (0)