-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.axaml
More file actions
77 lines (66 loc) · 3.54 KB
/
App.axaml
File metadata and controls
77 lines (66 loc) · 3.54 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
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="finallywearentslacking.App"
xmlns:local="using:finallywearentslacking"
xmlns:vm="clr-namespace:finallywearentslacking.ViewModels"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.DataTemplates>
<local:ViewLocator/>
<!-- creating a adata template that can be accessed all over so tasks are always displayed the same way -->
</Application.DataTemplates>
<Application.Resources>
<!-- font resources -->
<FontFamily x:Key="BigTitleFont">avares://finallywearentslacking/Assets/fonts#Climate Crisis</FontFamily>
<FontFamily x:Key="signinFont"> avares://finallywearentslacking/Assets/fonts/#Jersey 10</FontFamily>
<!-- button resources -->
<ControlTheme x:Key="signinbuttontheme" TargetType="Button">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="#372a28"/>
<Setter Property="FontSize" Value="50"/>
<Setter Property="FontFamily" Value="{StaticResource signinFont}" />
</ControlTheme>
<!-- background gradient resource -->
<LinearGradientBrush x:Key="gradientBG" StartPoint="0%,50%" EndPoint="100%,50%">
<GradientStop Color="#ffc414" Offset="0.0"/>
<GradientStop Color="#744900" Offset="1.0"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="addtaskgradientBG" StartPoint="0%,50%" EndPoint="100%,50%">
<GradientStop Color="#ffc414" Offset="0.0"/>
<GradientStop Color="#fed0ff" Offset="1.0"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="greengradientBG" StartPoint="50%,0%" EndPoint="50%,100%">
<GradientStop Color="#ffc414" Offset="0.0"/>
<GradientStop Color="#007a3f" Offset="1.0"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="redgradientBG" StartPoint="50%,0%" EndPoint="50%,100%">
<GradientStop Color="#ffc414" Offset="0.0"/>
<GradientStop Color="#ff2828" Offset="1.0"/>
</LinearGradientBrush>
</Application.Resources>
<Application.Styles>
<FluentTheme />
<!-- textblock themes -->
<Style Selector="TextBlock.bigtitle">
<Setter Property="FontSize" Value="34"/>
<Setter Property="TextBlock.Foreground" Value="#372a28"/>
<Setter Property="FontFamily" Value="{StaticResource BigTitleFont}"/>
</Style>
<Style Selector="TextBlock.normalbrowntext">
<Setter Property="FontSize" Value="25" />
<Setter Property="Foreground" Value="#372a28"/>
</Style>
<Style Selector="TextBlock.boldbrowntext">
<Setter Property="FontSize" Value="25" />
<Setter Property="Foreground" Value="#372a28"/>
<Setter Property="FontWeight" Value="Bold" />
</Style>
<!-- text BOX to ENTER TEXT theme -->
<Style Selector="TextBox.redfield">
<Setter Property="Background" Value="#e7191f"/>
<Setter Property="Foreground" Value="DarkGray"/>
<Setter Property="CornerRadius" Value="7"/>
<Setter Property="Width" Value="300"/>
</Style>
</Application.Styles>
</Application>