-
Notifications
You must be signed in to change notification settings - Fork 40
/
App.xaml
70 lines (64 loc) · 2.28 KB
/
App.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<Application x:Class="CanaryLauncherUpdate.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CanaryLauncherUpdate"
StartupUri="SplashScreen.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Assets/icons.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style
x:Key="WindowButtonStyle"
TargetType="{x:Type Button}">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Height" Value="25"/>
<Setter Property="Width" Value="25"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border
Name="bd"
Background="{TemplateBinding Background}"
BorderThickness="{TemplateBinding BorderThickness}">
<Path
Name="ico"
Data="{TemplateBinding Content}"
Fill="White"
Height="10"
Width="10"
Stretch="Uniform"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bd"
Property="Border.Background"
Value="#000000"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="True"/>
<Condition Property="Tag" Value="IsCloseButton"/>
</MultiTrigger.Conditions>
<Setter Property="Background"
Value="#000000"/>
</MultiTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ToolTip}">
<Setter Property="Background" Value="#c0c0c0"/>
<Setter Property="Foreground" Value="#404348"/>
<Setter Property="HasDropShadow" Value="True"/>
<Setter Property="BorderBrush" Value="#000202"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="5"/>
<Setter Property="HasDropShadow" Value="True"/>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>