-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.axaml
More file actions
111 lines (91 loc) · 3.58 KB
/
App.axaml
File metadata and controls
111 lines (91 loc) · 3.58 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="PaintPower.App"
RequestedThemeVariant="Default">
<Application.Resources>
<ControlTemplate x:Key="ThreeDButtonTemplate" TargetType="Button">
<Border CornerRadius="5"
Background="{TemplateBinding Background}"
Name="button"
MinWidth="50">
<Grid>
<!-- Outer border -->
<Border BorderThickness="1,0,1,1"
BorderBrush="Black"
CornerRadius="{Binding ElementName=button, Path=CornerRadius}"/>
<!-- Inner highlight -->
<Border BorderThickness="0,1,0,0"
BorderBrush="#f1eebd"
Margin="2"
Opacity="0.7"
CornerRadius="{Binding ElementName=button, Path=CornerRadius}"/>
<!-- Inner shadow (fake inset shadow) -->
<Border BorderThickness="1"
BorderBrush="#00000040"
Margin="3"
CornerRadius="{Binding ElementName=button, Path=CornerRadius}"/>
<!-- Content -->
<ContentPresenter TextBlock.FontSize="{TemplateBinding FontSize}" TextBlock.FontFamily="{TemplateBinding FontFamily}" TextBlock.Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" HorizontalAlignment="Center" Content="{TemplateBinding Content}" Padding="5"></ContentPresenter>
</Grid>
</Border>
</ControlTemplate>
</Application.Resources>
<Application.Styles>
<FluentTheme />
<ClassicTheme />
<StyleInclude Source="avares://AvaloniaEdit/Themes/Fluent/AvaloniaEdit.xaml" />
<Style Selector="Control">
<Setter Property="Transitions" Value="{x:Null}"/>
</Style>
<Style Selector="Button:pressed">
<Setter Property="RenderTransform" Value="none" />
</Style>
<Style Selector="Button:pressed /template/ Border#outer">
<Setter Property="BoxShadow" Value="0 0 0 0 #00000000"/>
<Setter Property="BorderBrush" Value="#f8f1b1"/>
</Style>
<Style Selector="Button:pressed /template/ Grid Border[Margin=2]">
<Setter Property="Background" Value="#C0C0C0"/>
</Style>
<Style Selector="Button.blue:pressed /template/ Grid Border[Margin=2]">
<Setter Property="Background" Value="#2F6BB8"/>
</Style>
<Style Selector="Button:pressed /template/ Grid Border[Margin=2]">
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="Blue" Offset="0"/>
<GradientStop Color="White" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
<Style Selector="Button">
<Setter Property="Template" Value="{StaticResource ThreeDButtonTemplate}"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="Padding" Value="6"/>
<Setter Property="MinWidth" Value="20"/>
<Setter Property="MinHeight" Value="28"/>
<Setter Property="MaxHeight" Value="28" />
</Style>
<Style Selector="Button.white">
<Setter Property="Background" Value="#E0E0E0"/>
<Setter Property="Foreground" Value="Black"/>
</Style>
<Style Selector="Button.white:pressed">
<Setter Property="Background" Value="#3A7BD5"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<Style Selector="Button.gray">
<Setter Property="Background" Value="#949385"/>
</Style>
<Style Selector="Button.gray:pressed">
<Setter Property="Background" Value="#D0D0D0"/>
</Style>
<Style Selector="Window, UserControl">
<Setter Property="Background" Value="#e0e0e0"/>
</Style>
</Application.Styles>
</Application>