-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.axaml
More file actions
95 lines (91 loc) · 4.78 KB
/
Copy pathApp.axaml
File metadata and controls
95 lines (91 loc) · 4.78 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
<Application
x:Class="Aniki.App"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:conv="clr-namespace:Aniki.Converters"
RequestedThemeVariant="Dark">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="/Resources/MainResources.axaml" />
<ResourceDictionary>
<conv:GreaterThanZeroConverter x:Key="GreaterThanZeroConverter" />
<conv:SeederColorConverter x:Key="SeederColorConverter" />
<conv:AnimeTypeToColorConverter x:Key="AnimeTypeToColorConverter" />
<conv:ValueToGridLengthConverter x:Key="ValueToGridLengthConverter" />
<conv:EqualToZeroConverter x:Key="EqualToZeroConverter" />
<conv:EnumMatchConverter x:Key="EnumMatchConverter" />
<conv:BoolToColorConverter x:Key="BoolToColorConverter" />
<conv:StringToFormattedIntConverter x:Key="StringToFormattedIntConverter" />
<conv:YoutubeEmbedUrlToWatchUrlConverter x:Key="YoutubeEmbedUrlToWatchUrlConverter" />
<conv:BoolToViewButtonBackgroundConverter x:Key="BoolToViewButtonBackgroundConverter" />
<conv:StatusToColorConverter x:Key="StatusToColorConverter" />
<conv:DateToYearConverter x:Key="DateToYearConverter" />
<conv:AllTrueMultiValueConverter x:Key="AllTrueMultiValueConverter" />
<conv:CalendarColumnBorderThicknessConverter x:Key="CalendarColumnBorderThicknessConverter" />
<conv:HexToBrushConverter x:Key="HexToBrushConverter" />
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
<Application.Styles>
<FluentTheme />
<!-- Pagination / nav buttons -->
<Style Selector="Button.nav-button">
<Setter Property="Background" Value="{StaticResource Background0}" />
<Setter Property="Foreground" Value="{StaticResource White}" />
<Setter Property="BorderBrush" Value="{StaticResource BorderLight}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="6" />
<Setter Property="Padding" Value="12,6" />
<Setter Property="Margin" Value="4,0" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="MinWidth" Value="40" />
<Setter Property="Height" Value="32" />
</Style>
<Style Selector="Button.nav-button:pointerover">
<Setter Property="Background" Value="{StaticResource Background1}" />
<Setter Property="BorderBrush" Value="{StaticResource BorderHover}" />
</Style>
<Style Selector="Button.nav-button:pressed">
<Setter Property="Background" Value="{StaticResource SurfaceHover}" />
</Style>
<Style Selector="Button.MenuButton">
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.MenuButton:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="{StaticResource Background1}" />
</Style>
<Style Selector="Button.MenuButton:pressed /template/ ContentPresenter">
<Setter Property="Background" Value="{StaticResource Surface2}" />
</Style>
<Style Selector="Button.MenuButton:pointerover TextBlock">
<Setter Property="Foreground" Value="{StaticResource White}" />
</Style>
<Style Selector="Button.IconButton">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Padding" Value="6" />
<Setter Property="CornerRadius" Value="4" />
<Setter Property="Opacity" Value="0.7" />
<Setter Property="Transitions">
<Transitions>
<DoubleTransition Property="Opacity" Duration="0:0:0.15" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button.IconButton:pointerover">
<Setter Property="Opacity" Value="1" />
</Style>
<Style Selector="Button.IconButton:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="#22FFFFFF" />
</Style>
<!-- Global cursor -->
<Style Selector="Button">
<Setter Property="Cursor" Value="Hand"/>
</Style>
</Application.Styles>
</Application>