mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 14:51:44 +01:00
Added: Styles
This commit is contained in:
parent
2025f9155b
commit
8366ea0f64
@ -3,6 +3,6 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Borepin.App">
|
||||
<Application.Resources>
|
||||
|
||||
<ResourceDictionary Source="Styles/LightTheme.xaml" />
|
||||
</Application.Resources>
|
||||
</Application>
|
@ -29,10 +29,13 @@
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Resources\TextResource.Designer.cs">
|
||||
<Compile Update="Resources\Text\TextResource.de.Designer.cs">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>TextResource.resx</DependentUpon>
|
||||
<DependentUpon>TextResource.de.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="Styles\LightTheme.xaml.cs">
|
||||
<DependentUpon>LightTheme.xaml</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@ -40,9 +43,12 @@
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Resources\TextResource.resx">
|
||||
<EmbeddedResource Update="Resources\Text\TextResource.de.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>TextResource.Designer.cs</LastGenOutput>
|
||||
<LastGenOutput>TextResource.de.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Update="Styles\LightTheme.xaml">
|
||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -3,18 +3,18 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Borepin.MainPage">
|
||||
|
||||
<StackLayout>
|
||||
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0">
|
||||
<Label Text="Welcome to Xamarin.Forms!" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/>
|
||||
<StackLayout BackgroundColor="#FFFFFFFF">
|
||||
<Frame BackgroundColor="{DynamicResource SecondColor}" Padding="24" CornerRadius="0">
|
||||
<Label Text="Welcome to FabAccess" HorizontalTextAlignment="Center" TextColor="{DynamicResource FirstColor}" FontSize="36"/>
|
||||
</Frame>
|
||||
<Label Text="Start developing now" FontSize="Title" Padding="30,10,30,10"/>
|
||||
<Label Text="Make changes to your XAML file and save to see your UI update in the running app with XAML Hot Reload. Give it a try!" FontSize="16" Padding="30,0,30,0"/>
|
||||
<Label FontSize="16" Padding="30,24,30,0">
|
||||
<Label Text="Join now" FontSize="Title" Padding="30,10,30,10" />
|
||||
<Label Text="Register a Card and start working." FontSize="16" Padding="30,0,30,0" TextColor="{DynamicResource FourthColor}"/>
|
||||
<Label FontSize="16" Padding="30,24,30,0" TextColor="{DynamicResource FourthColor}">
|
||||
<Label.FormattedText>
|
||||
<FormattedString>
|
||||
<FormattedString.Spans>
|
||||
<Span Text="Learn more at "/>
|
||||
<Span Text="https://aka.ms/xamarin-quickstart" FontAttributes="Bold"/>
|
||||
<Span Text="https://fab-access.org" FontAttributes="Bold" TextColor="{DynamicResource ThirdColor}"/>
|
||||
</FormattedString.Spans>
|
||||
</FormattedString>
|
||||
</Label.FormattedText>
|
||||
|
@ -8,7 +8,7 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Borepin.Resources {
|
||||
namespace Borepin.Resources.Text {
|
||||
using System;
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ namespace Borepin.Resources {
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Borepin.Resources.TextResource", typeof(TextResource).Assembly);
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Borepin.Resources.Text.TextResource", typeof(TextResource).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
11
Borepin/Borepin/Styles/LightTheme.xaml
Normal file
11
Borepin/Borepin/Styles/LightTheme.xaml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ResourceDictionary xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Borepin.Styles.LightTheme">
|
||||
|
||||
<Color x:Key="FirstColor">#FF00D4AA</Color>
|
||||
<Color x:Key="SecondColor">#FF3C474D</Color>
|
||||
<Color x:Key="ThirdColor">#FF333333</Color>
|
||||
<Color x:Key="FourthColor">#FF555555</Color>
|
||||
<Color x:Key="FifthColor">#FFCCCCCC</Color>
|
||||
</ResourceDictionary>
|
14
Borepin/Borepin/Styles/LightTheme.xaml.cs
Normal file
14
Borepin/Borepin/Styles/LightTheme.xaml.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace Borepin.Styles
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class LightTheme : ResourceDictionary
|
||||
{
|
||||
public LightTheme()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user