|
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
6 | 6 | xmlns:local="clr-namespace:UnityLauncherPro"
|
7 | 7 | mc:Ignorable="d"
|
8 |
| - Title="UnityLauncherPro" Height="600" Width="500" WindowStartupLocation="CenterScreen" Background="#FF121212" MinWidth="500" MinHeight="300"> |
| 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 | <Style x:Key="TabItemStyle1" TargetType="{x:Type TabItem}">
|
|
46 | 46 | </Window.Resources>
|
47 | 47 |
|
48 | 48 | <Grid Margin="0">
|
49 |
| - <TabControl x:Name="tabControl" Background="#FF262626" BorderBrush="{x:Null}" Padding="0"> |
| 49 | + <Grid.RowDefinitions> |
| 50 | + <RowDefinition Height="23" /> |
| 51 | + <RowDefinition /> |
| 52 | + </Grid.RowDefinitions> |
| 53 | + |
| 54 | + <Grid> |
| 55 | + <Rectangle Grid.Row="0" Fill="#FF0C0C0C" MouseDown="OnRectangleMouseDown" /> |
| 56 | + <Image Source="Images/icon.png" HorizontalAlignment="Left" Width="16" Height="16" Margin="4,0,0,0" /> |
| 57 | + <Label Content="UnityLauncherPro 1.0" IsHitTestVisible="False" Margin="19,0,0,-5" Foreground="#FFB8B8B8" FontSize="12" HorizontalAlignment="Left" /> |
| 58 | + </Grid> |
| 59 | + |
| 60 | + <TabControl Grid.Row="1" x:Name="tabControl" Background="#FF262626" BorderBrush="{x:Null}" Padding="0"> |
50 | 61 | <TabItem Header="Projects" Style="{DynamicResource TabItemStyle1}" Padding="0,0,0,0" Margin="-1,1,1,-1" BorderBrush="{x:Null}" Background="Black">
|
51 | 62 | <Grid>
|
52 |
| - <TextBox x:Name="textBox" Height="19" TextWrapping="Wrap" Text="Search" Width="230" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,6,0,0" Background="#FF333337" Foreground="Gainsboro" BorderBrush="#FF434346"/> |
| 63 | + <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"/> |
| 64 | + |
| 65 | + <TextBlock IsHitTestVisible="False" Text="Search" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0" Foreground="#FF707070" Height="29" Padding="12,6.5,0,0"> |
| 66 | + <TextBlock.Style> |
| 67 | + <Style TargetType="{x:Type TextBlock}"> |
| 68 | + <Setter Property="Visibility" Value="Collapsed"/> |
| 69 | + <Style.Triggers> |
| 70 | + <DataTrigger Binding="{Binding Text, ElementName=SearchTermTextBox}" Value=""> |
| 71 | + <Setter Property="Visibility" Value="Visible"/> |
| 72 | + </DataTrigger> |
| 73 | + </Style.Triggers> |
| 74 | + </Style> |
| 75 | + </TextBlock.Style> |
| 76 | + </TextBlock> |
| 77 | + |
53 | 78 | <Button x:Name="button" 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"/>
|
54 | 79 |
|
55 | 80 | <DataGrid x:Name="dataGrid" Margin="0,30" Background="{x:Null}" BorderBrush="{x:Null}" ColumnHeaderStyle="{StaticResource HeaderStyle}" Padding="0" HorizontalScrollBarVisibility="Disabled" HeadersVisibility="Column" Foreground="#FFD8D8D8" HorizontalGridLinesBrush="#4C000000" VerticalGridLinesBrush="#19000000">
|
|
0 commit comments