demo-xf-app-1a/MobileApp1/App.xaml

60 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MobileApp1.App">
<Application.Resources>
<ResourceDictionary>
<Color x:Key="Primary">#4865A9</Color>
<Color x:Key="Info">#47A5DE</Color>
<Color x:Key="Secondary">#5576C3</Color>
<Color x:Key="Danger">#F33C0C</Color>
<Color x:Key="Warning">#F3B70C</Color>
<Color x:Key="Muted">#B6B6B6</Color>
<Color x:Key="Light">#B6B6B6</Color>
<Color x:Key="White">#FFFFFF</Color>
<!-- -->
<Style TargetType="ActivityIndicator">
<Setter Property="Color" Value="{StaticResource Info}"></Setter>
<Setter Property="HorizontalOptions" Value="Center"></Setter>
</Style>
<Style TargetType="Button">
<Setter Property="HorizontalOptions" Value="Fill"></Setter>
<Setter Property="TextColor" Value="{StaticResource White}"></Setter>
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="{StaticResource Primary}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="{StaticResource Muted}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Pressed">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="{StaticResource Secondary}" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
<Style TargetType="CarouselView">
<Setter Property="IsBounceEnabled" Value="False"></Setter>
</Style>
<Style TargetType="Entry">
<Setter Property="HorizontalOptions" Value="Fill"></Setter>
</Style>
<Style TargetType="IndicatorView">
<Setter Property="HorizontalOptions" Value="Center"></Setter>
<Setter Property="IndicatorColor" Value="{StaticResource Muted}"></Setter>
<Setter Property="MaximumVisible" Value="6"></Setter>
<Setter Property="SelectedIndicatorColor" Value="{StaticResource Secondary}"></Setter>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>