|
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 | + <!-- tabs --> |
11 | 12 | <Style x:Key="TabItemStyle1" TargetType="{x:Type TabItem}">
|
12 | 13 | <Setter Property="Template">
|
13 | 14 | <Setter.Value>
|
|
23 | 24 | </Trigger>
|
24 | 25 | <Trigger Property="IsSelected" Value="True">
|
25 | 26 | <Setter Property="TextElement.Foreground" TargetName="ContentSite" Value="White"/>
|
26 |
| - <Setter Property="TextElement.FontWeight" TargetName="ContentSite" Value="SemiBold"/> |
| 27 | + <Setter TargetName="Border" Property="Background" Value="#FF262626"/> |
| 28 | + </Trigger> |
| 29 | + <Trigger Property="IsMouseOver" Value="True"> |
27 | 30 | <Setter TargetName="Border" Property="Background" Value="#FF262626"/>
|
28 | 31 | </Trigger>
|
29 | 32 | </ControlTemplate.Triggers>
|
|
32 | 35 | </Setter>
|
33 | 36 | </Style>
|
34 | 37 |
|
| 38 | + <!-- datagrid --> |
35 | 39 | <Style x:Key="HeaderStyle" TargetType="DataGridColumnHeader">
|
36 | 40 | <Setter Property="Background" Value="#4C3F3F46" />
|
37 | 41 | <Setter Property="Foreground" Value="#FFB6B6B6" />
|
|
43 | 47 | <Setter Property="Padding" Value="6,2,2,2" />
|
44 | 48 | </Style>
|
45 | 49 |
|
| 50 | + <!-- custom buttons --> |
| 51 | + <Style x:Key="CustomButton" TargetType="Button"> |
| 52 | + <Setter Property="SnapsToDevicePixels" Value="true"/> |
| 53 | + <Setter Property="OverridesDefaultStyle" Value="true"/> |
| 54 | + <Setter Property="Template"> |
| 55 | + <Setter.Value> |
| 56 | + <ControlTemplate TargetType="Button"> |
| 57 | + <Border Name="shortcutbutton" BorderThickness="0" BorderBrush="Black" Background="{TemplateBinding Background}"> |
| 58 | + <ContentPresenter Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" RecognizesAccessKey="True"/> |
| 59 | + </Border> |
| 60 | + <ControlTemplate.Triggers> |
| 61 | + <Trigger Property="IsMouseOver" Value="true"> |
| 62 | + <Setter TargetName="shortcutbutton" Property="Background" Value="#FF494949" /> |
| 63 | + <!--<Setter Property="TextElement.Foreground" TargetName="shortcutbutton" Value="Blue"/>--> |
| 64 | + </Trigger> |
| 65 | + <Trigger Property="IsPressed" Value="true"> |
| 66 | + <Setter TargetName="shortcutbutton" Property="Background" Value="#FF0F0F0F" /> |
| 67 | + <!--<Setter Property="TextElement.Foreground" TargetName="shortcutbutton" Value="Red"/>--> |
| 68 | + </Trigger> |
| 69 | + </ControlTemplate.Triggers> |
| 70 | + </ControlTemplate> |
| 71 | + </Setter.Value> |
| 72 | + </Setter> |
| 73 | + </Style> |
| 74 | + |
46 | 75 | </Window.Resources>
|
47 | 76 |
|
48 | 77 | <Grid Margin="0">
|
|
51 | 80 | <RowDefinition />
|
52 | 81 | </Grid.RowDefinitions>
|
53 | 82 |
|
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" /> |
| 83 | + <Grid Grid.Row="0" UseLayoutRounding="False"> |
| 84 | + <Rectangle Fill="#FF0C0C0C" MouseDown="OnRectangleMouseDown" /> |
| 85 | + <Image Source="Images/icon.png" RenderOptions.BitmapScalingMode="NearestNeighbor" HorizontalAlignment="Left" Width="16" Height="16" Margin="4,0,0,0" SnapsToDevicePixels="True" UseLayoutRounding="True" /> |
| 86 | + <Label Content="UnityLauncherPro" IsHitTestVisible="False" Margin="19,0,0,-5" Foreground="#FFB8B8B8" FontSize="12" HorizontalAlignment="Left" /> |
| 87 | + <Button Name="btnClose" BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="23" Width="23" Background="{x:Null}" Click="BtnClose_Click"> |
| 88 | + <TextBlock Text="x" Margin="0,-5,0,0" FontSize="18" Foreground="#FFC3C3C3"/> |
| 89 | + </Button> |
58 | 90 | </Grid>
|
59 | 91 |
|
60 | 92 | <TabControl Grid.Row="1" x:Name="tabControl" Background="#FF262626" BorderBrush="{x:Null}" Padding="0">
|
|
75 | 107 | </TextBlock.Style>
|
76 | 108 | </TextBlock>
|
77 | 109 |
|
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"/> |
| 110 | + <Button Style="{StaticResource CustomButton}" 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}" /> |
| 111 | + <Button Style="{StaticResource CustomButton}" 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}"/> |
79 | 112 |
|
80 | 113 | <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">
|
81 | 114 | <DataGrid.Columns>
|
|
0 commit comments