|
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<Application |
| 3 | + x:Class="RatingApp.App" |
| 4 | + xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
| 5 | + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
| 6 | + xmlns:d="http://schemas.microsoft.com/dotnet/2021/maui/design" |
| 7 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 8 | + xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" |
| 9 | + xmlns:local="clr-namespace:RatingApp" |
| 10 | + mc:Ignorable="d"> |
| 11 | + <Application.Resources> |
| 12 | + <ResourceDictionary> |
| 13 | + <ResourceDictionary.MergedDictionaries> |
| 14 | + <ResourceDictionary Source="Resources/Colors.xaml" /> |
| 15 | + <ResourceDictionary Source="Resources/Styles.xaml" /> |
| 16 | + </ResourceDictionary.MergedDictionaries> |
| 17 | + <!-- Additional Styles --> |
| 18 | + <x:Double x:Key="ItemSpacing">10</x:Double> |
| 19 | + |
| 20 | + <Style ApplyToDerivedTypes="True" TargetType="StackBase"> |
| 21 | + <Setter Property="Spacing" |
| 22 | + Value="{StaticResource ItemSpacing}" /> |
| 23 | + </Style> |
| 24 | + |
| 25 | + <Style x:Key="MauiLabel" TargetType="Label"> |
| 26 | + <Setter Property="TextColor" |
| 27 | + Value="{AppThemeBinding Dark={StaticResource White}, Light={StaticResource Primary}}" /> |
| 28 | + </Style> |
| 29 | + |
| 30 | + <Style x:Key="Action" TargetType="Button"> |
| 31 | + <Setter Property="BackgroundColor" |
| 32 | + Value="{AppThemeBinding Dark={StaticResource BackgroundDark}, Light={StaticResource BackgroundLight}}" /> |
| 33 | + <Setter Property="TextColor" |
| 34 | + Value="{AppThemeBinding Dark={StaticResource TextDark}, Light={StaticResource TextLight}}" /> |
| 35 | + <Setter Property="FontFamily" |
| 36 | + Value="{StaticResource AppFont}" /> |
| 37 | + <Setter Property="FontSize" |
| 38 | + Value="{StaticResource AppFontSize}" /> |
| 39 | + <Setter Property="Padding" |
| 40 | + Value="14,10" /> |
| 41 | + </Style> |
| 42 | + |
| 43 | + <Style x:Key="PrimaryAction" |
| 44 | + TargetType="Button" |
| 45 | + BasedOn="{StaticResource Action}"> |
| 46 | + <Setter Property="BackgroundColor" |
| 47 | + Value="{StaticResource Primary}" /> |
| 48 | + <Setter Property="FontAttributes" |
| 49 | + Value="Bold" /> |
| 50 | + <Setter Property="TextColor" |
| 51 | + Value="{StaticResource White}" /> |
| 52 | + </Style> |
| 53 | + </ResourceDictionary> |
| 54 | + </Application.Resources> |
| 55 | +</Application> |
0 commit comments