ADD : avancement view + mise en place popup (à revoir)

homepage-05-09
Lou BRODA 1 year ago
parent b2b8f3a86f
commit a8010c01c7

@ -10,6 +10,8 @@
<Color x:Key="HeaderGray">#f2f0f6</Color> <Color x:Key="HeaderGray">#f2f0f6</Color>
<Color x:Key="HeaderSeparatorGray">#c9c9cb</Color> <Color x:Key="HeaderSeparatorGray">#c9c9cb</Color>
<Color x:Key="PopupBackground">#f5f5f5</Color>
<Color x:Key="PinkOrange">#fd0342</Color> <Color x:Key="PinkOrange">#fd0342</Color>
<Color x:Key="Primary">#512BD4</Color> <Color x:Key="Primary">#512BD4</Color>

@ -1,23 +1,35 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="LivreLand.View.ContentViews.PopupHomePlusButtonView"> x:Class="LivreLand.View.ContentViews.PopupHomePlusButtonView"
<Grid> HorizontalOptions="End"
VerticalOptions="Start">
<Grid BackgroundColor="{DynamicResource PopupBackground}">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="auto"/> <RowDefinition Height="auto"/>
<RowDefinition Height="auto"/> <RowDefinition Height="auto"/>
<RowDefinition Height="auto"/> <RowDefinition Height="auto"/>
<RowDefinition Height="10 "/> <RowDefinition Height="auto"/>
<RowDefinition Height="10"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/> <RowDefinition Height="auto"/>
<RowDefinition Height="auto"/> <RowDefinition Height="auto"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid Grid.Row="0"> <Grid Grid.Row="0"
<Label Text="Ajouter un livre"/> Margin="10,5,10,5">
<Label Text="Ajouter un livre"
Style="{StaticResource MasterStateBookText}"/>
</Grid> </Grid>
<Grid Grid.Row="1"> <contentView:SeparatorEntireView Grid.Row="1"/>
<Grid Grid.Row="2"
Margin="10,5,10,5">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/> <ColumnDefinition Width="auto"/>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
@ -25,10 +37,14 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label Text="Scanner un code-barres" <Label Text="Scanner un code-barres"
Style="{StaticResource HomeButtonText}"
Grid.Column="0"/> Grid.Column="0"/>
</Grid> </Grid>
<Grid Grid.Row="2"> <contentView:SeparatorEntireView Grid.Row="3"/>
<Grid Grid.Row="4"
Margin="10,5,10,5">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/> <ColumnDefinition Width="auto"/>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
@ -36,13 +52,15 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label Text="Scanner des codes-barres" <Label Text="Scanner des codes-barres"
Style="{StaticResource HomeButtonText}"
Grid.Column="0"/> Grid.Column="0"/>
</Grid> </Grid>
<Grid BackgroundColor="{DynamicResource HeaderGray}" <Grid BackgroundColor="{DynamicResource Gray}"
Grid.Row="3"/> Grid.Row="5"/>
<Grid Grid.Row="4"> <Grid Grid.Row="6"
Margin="10,5,10,5">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/> <ColumnDefinition Width="auto"/>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
@ -50,6 +68,7 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label Text="Rechercher en ligne" <Label Text="Rechercher en ligne"
Style="{StaticResource HomeButtonText}"
Grid.Column="0"/> Grid.Column="0"/>
<Image Source="magnifying_glass.png" <Image Source="magnifying_glass.png"
Grid.Column="2"> Grid.Column="2">
@ -59,7 +78,10 @@
</Image> </Image>
</Grid> </Grid>
<Grid Grid.Row="5"> <contentView:SeparatorEntireView Grid.Row="7"/>
<Grid Grid.Row="8"
Margin="10,5,10,5">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/> <ColumnDefinition Width="auto"/>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
@ -67,7 +89,9 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label Text="Saisir l'ISBN" <Label Text="Saisir l'ISBN"
Style="{StaticResource HomeButtonText}"
Grid.Column="0"/> Grid.Column="0"/>
</Grid> </Grid>
</Grid> </Grid>
</toolkit:Popup> </toolkit:Popup>

@ -7,5 +7,6 @@ public partial class PopupHomePlusButtonView : Popup
public PopupHomePlusButtonView() public PopupHomePlusButtonView()
{ {
InitializeComponent(); InitializeComponent();
Size = new Size(0.7 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density), 0.5 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density));
} }
} }
Loading…
Cancel
Save