|
8 | 8 | Title="UnityLauncherPro" Height="600" Width="500" WindowStartupLocation="CenterScreen" Background="#FF121212" MinWidth="500" MinHeight="300" WindowStyle="None" ResizeMode="CanResizeWithGrip" AllowsTransparency="True">
|
9 | 9 |
|
10 | 10 | <Window.Resources>
|
| 11 | + |
11 | 12 | <!-- tabs -->
|
12 | 13 | <Style x:Key="TabItemStyle1" TargetType="{x:Type TabItem}">
|
13 | 14 | <Setter Property="Template">
|
|
54 | 55 | <Setter Property="BorderThickness" Value="0,0,0,0" />
|
55 | 56 | <Style.Triggers>
|
56 | 57 | <Trigger Property="IsMouseOver" Value="True">
|
57 |
| - <Setter Property="Background" Value="#FF007ACC"/> |
| 58 | + <Setter Property="Background" Value="#B2007ACC"/> |
58 | 59 | <Setter Property="Foreground" Value="White"/>
|
59 | 60 | </Trigger>
|
60 | 61 | <Trigger Property="IsSelected" Value="True">
|
|
238 | 239 | </Style.Triggers>
|
239 | 240 | </Style>
|
240 | 241 |
|
| 242 | + <BooleanToVisibilityConverter x:Key="MyBoolToVisibilityConverter" /> |
| 243 | + |
241 | 244 | </Window.Resources>
|
242 | 245 |
|
243 | 246 |
|
244 | 247 | <!-- UI -->
|
| 248 | + |
245 | 249 | <Grid Margin="0">
|
246 | 250 | <Grid.RowDefinitions>
|
247 | 251 | <RowDefinition Height="23" />
|
|
254 | 258 | <Rectangle Fill="#FF0C0C0C" MouseDown="OnRectangleMouseDown" />
|
255 | 259 | <Image Source="Images/icon.png" RenderOptions.BitmapScalingMode="NearestNeighbor" HorizontalAlignment="Left" Width="16" Height="16" Margin="4,0,0,0" SnapsToDevicePixels="True" UseLayoutRounding="True" />
|
256 | 260 | <Label Content="UnityLauncherPro" IsHitTestVisible="False" Margin="19,0,0,-5" Foreground="#FFB8B8B8" FontSize="12" HorizontalAlignment="Left" />
|
| 261 | + <!-- minimize --> |
257 | 262 | <Button Name="btnMinimize" BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="23" Width="23" Background="Transparent" Click="BtnMinimize_Click" Margin="0,0,27,0" Padding="2,0,2,8">
|
258 | 263 | <TextBlock Text="–" FontSize="15" Foreground="#FFC3C3C3" Padding="0" Height="23" HorizontalAlignment="Center"/>
|
259 | 264 | </Button>
|
| 265 | + <!-- close --> |
260 | 266 | <Button Name="btnClose" BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="23" Width="23" Background="Transparent" Click="BtnClose_Click" Padding="0,2">
|
261 | 267 | <TextBlock Text="❌" FontSize="10" Foreground="#FFC3C3C3" Padding="5,3,4,4" HorizontalAlignment="Center" />
|
262 | 268 | </Button>
|
263 | 269 | </Grid>
|
264 | 270 |
|
265 |
| - <!-- main content : tabbar --> |
| 271 | + <!-- main content : Tabs --> |
266 | 272 | <TabControl Grid.Row="1" x:Name="tabControl" Background="#FF262626" BorderBrush="{x:Null}" Padding="0" Margin="0">
|
| 273 | + <!-- Tab: Projects--> |
267 | 274 | <TabItem Header="Projects" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black">
|
268 | 275 | <Grid>
|
269 |
| - <TextBox x:Name="SearchTermTextBox" Height="19" TextWrapping="Wrap" Width="230" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,6,0,0" Background="#FF333337" Foreground="Gainsboro" BorderBrush="#FF434346" TextChanged="OnSearchTextChanged" PreviewKeyDown="OnSearchPreviewKeyDown"/> |
| 276 | + <!-- search box --> |
| 277 | + <Grid Background="#FF333337" HorizontalAlignment="Left" VerticalAlignment="Top" Width="222" Margin="6,5,0,0" Height="20" > |
| 278 | + <TextBlock Margin="3,2" MinWidth="100" Text="Search" Foreground="#7F919191" Visibility="{Binding ElementName=txtSearchBox, Path=Text.IsEmpty, Converter={StaticResource MyBoolToVisibilityConverter}}" Height="24" /> |
| 279 | + <TextBox MinWidth="100" CaretBrush="#FFE2E2E2" Name="txtSearchBox" Background="Transparent" BorderBrush="{x:Null}" Foreground="#FFC7C7C7" SelectionBrush="#FF003966" BorderThickness="0" Margin="2,2,0,0" UndoLimit="64" /> |
| 280 | + <Button Name="btnClearSearch" 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}"> |
| 281 | + <TextBlock Text="❌" FontSize="8" Foreground="#FFC3C3C3" Padding="5,3,4,4" HorizontalAlignment="Center"> |
| 282 | + <TextBlock.Style> |
| 283 | + <Style TargetType="TextBlock"> |
| 284 | + <Style.Triggers> |
| 285 | + <DataTrigger Binding="{Binding ElementName=txtSearchBox, Path=Text}" Value=""> |
| 286 | + <Setter Property="Visibility" Value="Hidden"/> |
270 | 287 |
|
271 |
| - <TextBlock IsHitTestVisible="False" Text="Search" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Foreground="#FF707070" Height="29" Padding="12,6.5,0,0"> |
| 288 | + </DataTrigger> |
| 289 | + <DataTrigger Binding="{Binding ElementName=txtSearchBox, Path=Text}" Value="{x:Null}"> |
| 290 | + <Setter Property="Visibility" Value="Hidden"/> |
| 291 | + </DataTrigger> |
| 292 | + </Style.Triggers> |
| 293 | + </Style> |
| 294 | + </TextBlock.Style> |
| 295 | + </TextBlock> |
| 296 | + </Button> |
| 297 | + </Grid> |
| 298 | + |
| 299 | + <!--<TextBlock IsHitTestVisible="False" Text="Search" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Foreground="#FF707070" Height="29" Padding="12,6.5,0,0"> |
272 | 300 | <TextBlock.Style>
|
273 | 301 | <Style TargetType="{x:Type TextBlock}">
|
274 | 302 | <Setter Property="Visibility" Value="Collapsed"/>
|
|
279 | 307 | </Style.Triggers>
|
280 | 308 | </Style>
|
281 | 309 | </TextBlock.Style>
|
282 |
| - </TextBlock> |
| 310 | + </TextBlock>--> |
283 | 311 |
|
284 | 312 | <Button Style="{StaticResource CustomButton}" ToolTip="Add existing project" x:Name="btnAddProjectFolder" Content="Add Project.." Height="22" Width="78" HorizontalAlignment="Right" VerticalAlignment="Top" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="0,4,34,0" Click="BtnAddProjectFolder_Click" BorderBrush="{x:Null}" />
|
285 | 313 | <Button Style="{StaticResource CustomButton}" ToolTip="Refresh list (F5)" x:Name="btnRefreshProjectList" Content="⟳" Height="22" Width="22" HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="16" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="0,4,3,0" Padding="1,-2,1,1" BorderBrush="{x:Null}"/>
|
286 | 314 |
|
287 |
| - <DataGrid x:Name="dataGrid" SelectionMode="Single" Margin="0,30,0,42" Background="{x:Null}" BorderBrush="{x:Null}" ColumnHeaderStyle="{StaticResource HeaderStyle}" Padding="0" HorizontalScrollBarVisibility="Disabled" HeadersVisibility="Column" Foreground="#FFD8D8D8" HorizontalGridLinesBrush="#4C000000" VerticalGridLinesBrush="#19000000"> |
| 315 | + <DataGrid x:Name="dataGrid" 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"> |
288 | 316 |
|
289 | 317 | <DataGrid.Columns>
|
290 | 318 | <DataGridTextColumn Binding="{Binding Title}" ClipboardContentBinding="{x:Null}" Header="Project" IsReadOnly="True" MinWidth="123"/>
|
|
342 | 370 | <Grid.RowDefinitions>
|
343 | 371 | <RowDefinition Height="32" />
|
344 | 372 | </Grid.RowDefinitions>
|
345 |
| - <Button Grid.Column="0" Style="{StaticResource CustomButton}" x:Name="btnUpgradeProject" Content="Upgrade" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="5,0,0,0" BorderBrush="{x:Null}" /> |
346 |
| - <Button Grid.Column="1" Style="{StaticResource CustomButton}" x:Name="btnLaunchUnity" Content="Run Unity" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" /> |
347 |
| - <Button Grid.Column="2" Style="{StaticResource CustomButton}" x:Name="btnLaunchProject" Content="Open Project" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" /> |
348 |
| - <Button Grid.Column="3" Style="{StaticResource CustomButton}" x:Name="btnExplore" Content="Explore" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" /> |
| 373 | + <Button Grid.Column="0" Style="{StaticResource CustomButton}" x:Name="btnUpgradeProject" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="5,0,0,0" BorderBrush="{x:Null}"> |
| 374 | + <Label Foreground="#FFC1C1C1">_Upgrade</Label> |
| 375 | + </Button> |
| 376 | + <Button Grid.Column="1" Style="{StaticResource CustomButton}" x:Name="btnLaunchUnity" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" > |
| 377 | + <Label Foreground="#FFC1C1C1">_Run Unity</Label> |
| 378 | + </Button> |
| 379 | + |
| 380 | + <Button Grid.Column="2" Style="{StaticResource CustomButton}" x:Name="btnLaunchProject" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" > |
| 381 | + <Label Foreground="#FFC1C1C1">_Open Project</Label> |
| 382 | + </Button> |
| 383 | + |
| 384 | + <Button Grid.Column="3" Style="{StaticResource CustomButton}" x:Name="btnExplore" Background="#FF3F3F46" Foreground="#FFC1C1C1" Margin="8,0,0,0" BorderBrush="{x:Null}" > |
| 385 | + <Label Foreground="#FFC1C1C1">_Explore</Label> |
| 386 | + </Button> |
| 387 | + |
349 | 388 | </Grid>
|
350 | 389 | </Grid>
|
351 | 390 | </TabItem>
|
352 |
| - <TabItem Header="Unitys" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black" /> |
| 391 | + |
| 392 | + <!-- Tab: Unitys --> |
| 393 | + <TabItem Header="Unitys" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black"/> |
| 394 | + <!-- Tab: Packages --> |
353 | 395 | <TabItem Header="Packages" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black" />
|
| 396 | + <!-- Tab: Updates --> |
354 | 397 | <TabItem Header="Updates" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black" />
|
| 398 | + <!-- Tab: Tools --> |
| 399 | + <TabItem Header="Tools" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black" /> |
| 400 | + <!-- Tab: Settings --> |
355 | 401 | <TabItem Header="Settings" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black" />
|
356 | 402 | </TabControl>
|
357 | 403 |
|
|
361 | 407 | </StatusBar>
|
362 | 408 | </Grid>
|
363 | 409 |
|
| 410 | + |
| 411 | + |
364 | 412 | </Grid>
|
365 | 413 | </Window>
|
0 commit comments