|
7 | 7 | xmlns:data="clr-namespace:UnityLauncherPro.Data" |
8 | 8 | d:DataContext="{d:DesignInstance Type=local:NewProject}" |
9 | 9 | mc:Ignorable="d" |
10 | | - Title="Create New Project" Height="480" Width="640" Background="{DynamicResource ThemeDarkestBackground}" PreviewKeyDown="Window_PreviewKeyDown" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="True"> |
| 10 | + Title="Create New Project" Height="520" Width="640" Background="{DynamicResource ThemeDarkestBackground}" PreviewKeyDown="Window_PreviewKeyDown" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="True"> |
11 | 11 |
|
12 | 12 | <Grid> |
13 | 13 | <Grid.ColumnDefinitions> |
|
24 | 24 | </DataGrid.Columns> |
25 | 25 | </DataGrid> |
26 | 26 |
|
27 | | - <Grid HorizontalAlignment="Stretch" Margin="0,3,0,0"> |
| 27 | + <Grid HorizontalAlignment="Stretch" Margin="0,20,0,0"> |
28 | 28 | <Grid.ColumnDefinitions> |
29 | 29 | <ColumnDefinition Width="35*"/> |
30 | 30 | <ColumnDefinition Width="15*"/> |
|
50 | 50 | <CheckBox Grid.Column="3" x:Name="chkForceDX11" Content="DX11" ToolTip="Use DX11 instead of DX12" Margin="6,0,0,0" IsChecked="False" Checked="chkForceDX11_Checked" Unchecked="chkForceDX11_Checked"/> |
51 | 51 | </Grid> |
52 | 52 |
|
53 | | - <Label x:Name="lblNewProjectFolderLabel" Grid.Column="0" Content="Project Root Folder:" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0" Padding="0,5,5,0" /> |
| 53 | + <Label x:Name="lblNewProjectFolderLabel" Grid.Column="0" Content="Project Root Folder:" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,8,0,0" Padding="0,5,5,0" /> |
54 | 54 | <Grid HorizontalAlignment="Stretch" Margin="0,3,0,0"> |
55 | 55 | <Grid.ColumnDefinitions> |
56 | 56 | <ColumnDefinition Width="18*"/> |
|
63 | 63 | </Grid> |
64 | 64 |
|
65 | 65 | <!--<Label x:Name="lblNewProjectFolder" Content="(folder)" Foreground="{DynamicResource ThemeButtonForegroundDisabled}" Margin="0" FontSize="10" Padding="5,0,5,3" />--> |
66 | | - <Grid HorizontalAlignment="Stretch" Margin="0,24,0,0"> |
| 66 | + <Grid HorizontalAlignment="Stretch" Margin="0,32,0,0"> |
67 | 67 | <Grid.ColumnDefinitions> |
68 | 68 | <ColumnDefinition Width="0.7*"/> |
69 | 69 | <ColumnDefinition Width="*"/> |
|
86 | 86 | </StackPanel> |
87 | 87 | <StackPanel Orientation="Vertical" Margin="0,3,10,3" Grid.Column="1"> |
88 | 88 | <Label Content="Unity Online Templates" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,0,0,3" Padding="5,5,5,3" /> |
89 | | - <!-- search box --> |
90 | | - <Grid Background="{DynamicResource ThemeTextBoxBackground}" VerticalAlignment="Top" Margin="6,5,0,0" Height="20" > |
91 | | - <TextBlock Margin="3,2" MinWidth="100" Text="Filter" Foreground="{DynamicResource ThemeSearchPlaceholder}" Height="24"> |
92 | | - <TextBlock.Style> |
93 | | - <Style TargetType="TextBlock"> |
94 | | - <Setter Property="Visibility" Value="Collapsed" /> |
95 | | - <Style.Triggers> |
96 | | - <DataTrigger Binding="{Binding Text, ElementName=txtFilterTemplates}" Value=""> |
97 | | - <Setter Property="Visibility" Value="Visible" /> |
98 | | - </DataTrigger> |
99 | | - </Style.Triggers> |
100 | | - </Style> |
101 | | - </TextBlock.Style> |
102 | | - </TextBlock> |
103 | | - <TextBox MinWidth="100" CaretBrush="{DynamicResource ThemeSearchCaret}" x:Name="txtFilterTemplates" Background="Transparent" BorderBrush="{x:Null}" Foreground="{DynamicResource ThemeSearchForeground}" SelectionBrush="{DynamicResource ThemeSearchSelection}" BorderThickness="0" Margin="2,2,0,0" UndoLimit="64" /> |
104 | | - <Button x:Name="btnClearUpdatesSearch" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" BorderThickness="0" HorizontalAlignment="Right" VerticalAlignment="Top" Height="23" Width="23" Background="Transparent" Padding="0,2" Visibility="Visible" BorderBrush="{x:Null}" > |
105 | | - <TextBlock Text="❌" FontSize="8" Foreground="{DynamicResource ThemeSearchClose}" Padding="5,3,4,4" HorizontalAlignment="Center"> |
106 | | - <TextBlock.Style> |
107 | | - <Style TargetType="{x:Type TextBlock}"> |
108 | | - <Style.Triggers> |
109 | | - <DataTrigger Binding="{Binding Text, ElementName=txtFilterTemplates}" Value=""> |
110 | | - <Setter Property="Visibility" Value="Hidden"/> |
111 | | - </DataTrigger> |
112 | | - <DataTrigger Binding="{Binding Text, ElementName=txtFilterTemplates}" Value="{x:Null}"> |
113 | | - <Setter Property="Visibility" Value="Hidden"/> |
114 | | - </DataTrigger> |
115 | | - </Style.Triggers> |
116 | | - </Style> |
117 | | - </TextBlock.Style> |
118 | | - </TextBlock> |
119 | | - </Button> |
120 | | - </Grid> |
121 | 89 |
|
122 | | - <ListBox x:Name="listOnlineTemplates" Margin="6,5,0,0" Height="310" |
| 90 | + |
| 91 | + <ListBox x:Name="listOnlineTemplates" Margin="6,5,0,0" Height="411" |
123 | 92 | Background="{DynamicResource ThemeMainBackgroundColor}" |
124 | 93 | Foreground="{DynamicResource ThemeButtonForeground}" |
125 | 94 | ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
|
140 | 109 | <ListBox.ItemTemplate> |
141 | 110 | <DataTemplate> |
142 | 111 | <StackPanel Orientation="Vertical" Margin="3"> |
143 | | - <Image Source="{Binding PreviewImageURL}" |
144 | | - Margin="0,0,0,5" |
145 | | - ToolTip="{Binding Description}" |
146 | | - Stretch="Uniform" |
147 | | - HorizontalAlignment="Stretch"/> |
| 112 | + <Grid> |
| 113 | + <Image Source="{Binding PreviewImageURL}" |
| 114 | + Margin="0,0,0,5" |
| 115 | + ToolTip="{Binding Description}" |
| 116 | + Stretch="Uniform" |
| 117 | + HorizontalAlignment="Stretch"/> |
| 118 | + <Button x:Name="btnDownloadTemplate" |
| 119 | + ToolTip="Download Template" |
| 120 | + Content="⬇" |
| 121 | + Height="24" |
| 122 | + Width="24" |
| 123 | + HorizontalAlignment="Right" |
| 124 | + VerticalAlignment="Top" |
| 125 | + FontSize="14" |
| 126 | + Margin="2" |
| 127 | + Padding="0" |
| 128 | + BorderBrush="{x:Null}" |
| 129 | + Opacity="0.85" |
| 130 | + Click="btnDownloadTemplate_Click" |
| 131 | + Tag="{Binding}"> |
| 132 | + <Button.Style> |
| 133 | + <Style TargetType="Button" BasedOn="{StaticResource CustomButton}"> |
| 134 | + <Setter Property="Visibility" Value="Visible"/> |
| 135 | + <Style.Triggers> |
| 136 | + <DataTrigger Binding="{Binding IsDownloaded}" Value="True"> |
| 137 | + <Setter Property="Visibility" Value="Collapsed"/> |
| 138 | + </DataTrigger> |
| 139 | + </Style.Triggers> |
| 140 | + </Style> |
| 141 | + </Button.Style> |
| 142 | + </Button> |
| 143 | + <!-- Downloaded indicator badge --> |
| 144 | + <Border Background="#CC2E7D32" |
| 145 | + CornerRadius="3" |
| 146 | + HorizontalAlignment="Right" |
| 147 | + VerticalAlignment="Top" |
| 148 | + Padding="4,2" |
| 149 | + Margin="2"> |
| 150 | + <Border.Style> |
| 151 | + <Style TargetType="Border"> |
| 152 | + <Setter Property="Visibility" Value="Collapsed"/> |
| 153 | + <Style.Triggers> |
| 154 | + <DataTrigger Binding="{Binding IsDownloaded}" Value="True"> |
| 155 | + <Setter Property="Visibility" Value="Visible"/> |
| 156 | + </DataTrigger> |
| 157 | + </Style.Triggers> |
| 158 | + </Style> |
| 159 | + </Border.Style> |
| 160 | + <TextBlock Text="✓" |
| 161 | + FontSize="10" |
| 162 | + FontWeight="Bold" |
| 163 | + Foreground="White"/> |
| 164 | + </Border> |
| 165 | + </Grid> |
148 | 166 | <TextBlock Text="{Binding Name}" |
149 | 167 | FontWeight="Bold" |
150 | 168 | TextWrapping="Wrap" |
|
0 commit comments