Setting up elements for city and date
This commit is contained in:
parent
d5b5006553
commit
41bf8f4a2f
|
@ -8,6 +8,7 @@
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
|
<ResourceDictionary Source="Resources/Styles/Colors.xaml" />
|
||||||
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
|
<ResourceDictionary Source="Resources/Styles/Styles.xaml" />
|
||||||
|
<ResourceDictionary Source="Resources/Styles/AppStyles.xaml" />
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</Application.Resources>
|
</Application.Resources>
|
||||||
|
|
|
@ -60,6 +60,9 @@
|
||||||
<MauiXaml Update="MVVM\Views\WeatherView.xaml">
|
<MauiXaml Update="MVVM\Views\WeatherView.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</MauiXaml>
|
</MauiXaml>
|
||||||
|
<MauiXaml Update="Resources\Styles\AppStyles.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</MauiXaml>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -5,9 +5,16 @@
|
||||||
Title="WeatherView">
|
Title="WeatherView">
|
||||||
|
|
||||||
<Grid Margin="15" RowDefinitions=".08*,.1*,.5*,.1*,.3*">
|
<Grid Margin="15" RowDefinitions=".08*,.1*,.5*,.1*,.3*">
|
||||||
|
<!--Search Bar-->
|
||||||
<Grid>
|
<Grid>
|
||||||
<Frame/>
|
<Frame/>
|
||||||
<SearchBar Placeholder="Search" VerticalOptions="Center"/>
|
<SearchBar Placeholder="Search" VerticalOptions="Center"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<!-- -->
|
||||||
|
<VerticalStackLayout Grid.Row="1" Style="{StaticResource MainStackLayout}">
|
||||||
|
<Label Text="Rome" Style="{StaticResource Title}"/>
|
||||||
|
<Label Text="November 2077"/>
|
||||||
|
|
||||||
|
</VerticalStackLayout>
|
||||||
</Grid>
|
</Grid>
|
||||||
</ContentPage>
|
</ContentPage>
|
|
@ -13,6 +13,8 @@ public static class MauiProgram
|
||||||
{
|
{
|
||||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||||
|
fonts.AddFont("Rubik-Light.ttf", "RubikLight");
|
||||||
|
fonts.AddFont("Rubik-Regular.ttf", "Rubik");
|
||||||
});
|
});
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,26 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<?xaml-comp compile="true" ?>
|
||||||
|
|
||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
|
||||||
|
|
||||||
|
|
||||||
|
<Style x:Key="MainStackLayout" TargetType="VerticalStackLayout">
|
||||||
|
<Setter Property="Marign" Value="0,10,0,0"/>
|
||||||
|
<Setter Property="Spacing" Value="15"/>
|
||||||
|
<Setter Property="VerticalOptions" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Label">
|
||||||
|
<Setter Property="TextColor" Value="{StaticResource Lightpurple}" />
|
||||||
|
<Setter Property="FontFamily" Value="Rubik" />
|
||||||
|
<Setter Property="HorizontalOptions" Value="Center" />
|
||||||
|
<Setter Property="VerticalOptions" Value="Center" />
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="Title" TargetType="Label">
|
||||||
|
<Setter Property="FontAttributes" Value="Bold"/>
|
||||||
|
<Setter Property="FontSize" Value="Large"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
|
@ -8,6 +8,9 @@
|
||||||
https://colorhunt.co/palette/0c134f1d267d5c469cd4adfc
|
https://colorhunt.co/palette/0c134f1d267d5c469cd4adfc
|
||||||
-->
|
-->
|
||||||
<Color x:Key="Darkblue">#0c134f</Color>
|
<Color x:Key="Darkblue">#0c134f</Color>
|
||||||
|
<Color x:Key="Lightpurple">#d4adfc</Color>
|
||||||
|
|
||||||
|
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
||||||
|
|
||||||
<Color x:Key="Primary">#512BD4</Color>
|
<Color x:Key="Primary">#512BD4</Color>
|
||||||
<Color x:Key="Secondary">#DFD8F7</Color>
|
<Color x:Key="Secondary">#DFD8F7</Color>
|
||||||
|
|
Loading…
Reference in New Issue