-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.xaml
73 lines (62 loc) · 3.67 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
71
72
73
<?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MyReference"
x:Class="MyReference.App">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
</ResourceDictionary.MergedDictionaries>
<Color x:Key="Primary">#FFC107</Color>
<Color x:Key="PrimaryDark">#FFA000</Color>
<Color x:Key="Accent">#00BCD4</Color>
<Color x:Key="LightBackground">#FAF9F8</Color>
<Color x:Key="DarkBackground">Black</Color>
<Style ApplyToDerivedTypes="True" TargetType="Page">
<Setter Property="BackgroundColor" Value="{StaticResource LightBackground}" />
</Style>
<Style ApplyToDerivedTypes="True" TargetType="NavigationPage">
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource LightBackground}, Dark={StaticResource DarkBackground}}" />
<Setter Property="BarBackgroundColor" Value="{StaticResource Primary}" />
<Setter Property="BarTextColor" Value="White" />
</Style>
<Style TargetType="Label" x:Key="BaseLabel">
<Setter Property="FontFamily" Value="OpenSansRegular" />
<Setter Property="TextColor" Value="#1F1F1F" />
</Style>
<Style x:Key="MicroLabel" BasedOn="{StaticResource BaseLabel}" TargetType="Label">
<Setter Property="FontSize" Value="10"/>
</Style>
<Style x:Key="SmallLabel" BasedOn="{StaticResource BaseLabel}" TargetType="Label">
<Setter Property="FontSize" Value="12"/>
</Style>
<Style x:Key="MediumLabel" BasedOn="{StaticResource BaseLabel}" TargetType="Label">
<Setter Property="FontSize" Value="16"/>
</Style>
<Style x:Key="LargeLabel" BasedOn="{StaticResource BaseLabel}" TargetType="Label">
<Setter Property="FontSize" Value="20"/>
</Style>
<Style ApplyToDerivedTypes="True" TargetType="RefreshView">
<Setter Property="RefreshColor" Value="{StaticResource Primary}" />
</Style>
<Style x:Key="ButtonOutline" TargetType="Button">
<Setter Property="Background" Value="{StaticResource LightBackground}" />
<Setter Property="TextColor" Value="{StaticResource Primary}" />
<Setter Property="BorderColor" Value="{StaticResource Primary}" />
<Setter Property="BorderWidth" Value="2" />
<Setter Property="HeightRequest" Value="40" />
<Setter Property="CornerRadius" Value="20" />
</Style>
<Style x:Key="CardView" TargetType="Frame">
<Setter Property="BorderColor" Value="#DDDDDD" />
<Setter Property="HasShadow" Value="{OnPlatform iOS=false, MacCatalyst=false, Default=true}" />
<Setter Property="Padding" Value="0" />
<Setter Property="Background" Value="{StaticResource LightBackground}" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="IsClippedToBounds" Value="True"/>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>