Merge pull request 'xaml/bug-fixes' (#51) from xaml/bug-fixes into master
continuous-integration/drone/push Build is passing Details

Reviewed-on: ShopNCook/ShopNCook#51
pull/52/head
Leo TUAILLON 2 years ago
commit 3eef25162b

@ -8,3 +8,4 @@ namespace Endpoint
public Account? Register(string email, string username, string password); public Account? Register(string email, string username, string password);
} }
} }

@ -19,7 +19,7 @@
<HorizontalStackLayout> <HorizontalStackLayout>
<ImageButton <ImageButton
Grid.Column="0" Grid.Column="0"
Clicked="OnBackButtonClicked"
HeightRequest="50" HeightRequest="50"
WidthRequest="50" WidthRequest="50"
Source="arrow_back.svg"/> Source="arrow_back.svg"/>
@ -60,7 +60,8 @@
<Entry <Entry
Style="{StaticResource UserInput}" Style="{StaticResource UserInput}"
Grid.Column="2" Grid.Column="2"
Placeholder="Old Password"/> Placeholder="Old Password"
IsPassword="True"/>
</Grid> </Grid>
</Border> </Border>
@ -85,7 +86,8 @@
<Entry <Entry
Style="{StaticResource UserInput}" Style="{StaticResource UserInput}"
Grid.Column="2" Grid.Column="2"
Placeholder="New Password"/> Placeholder="New Password"
IsPassword="True"/>
</Grid> </Grid>
</Border> </Border>
@ -111,7 +113,8 @@
<Entry <Entry
Style="{StaticResource UserInput}" Style="{StaticResource UserInput}"
Grid.Column="2" Grid.Column="2"
Placeholder="New Password"/> Placeholder="New Password"
IsPassword="True"/>
</Grid> </Grid>
</Border> </Border>
</VerticalStackLayout> </VerticalStackLayout>

@ -6,4 +6,8 @@ public partial class ChangePassword : ContentPage
{ {
InitializeComponent(); InitializeComponent();
} }
private async void OnBackButtonClicked(object sender, EventArgs e)
{
await Navigation.PopAsync();
}
} }

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView 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"
x:Class="ShoopNCook.Views.OwnedRecipeView"> x:Class="ShoopNCook.Views.OwnedRecipeView"
Margin="6,2">
<Border <Border
Style="{StaticResource SecondaryBorderShadow}" Style="{StaticResource SecondaryBorderShadow}"
StrokeShape="RoundRectangle 30"> StrokeShape="RoundRectangle 30">
@ -11,6 +12,8 @@
Padding="10" Padding="10"
MinimumHeightRequest="175" MinimumHeightRequest="175"
MinimumWidthRequest="150" MinimumWidthRequest="150"
MaximumHeightRequest="175"
MaximumWidthRequest="150"
RowDefinitions="*, Auto"> RowDefinitions="*, Auto">
<Grid.GestureRecognizers> <Grid.GestureRecognizers>
@ -25,7 +28,12 @@
StrokeShape="RoundRectangle 20" StrokeShape="RoundRectangle 20"
BackgroundColor="{StaticResource ImageBackground}"> BackgroundColor="{StaticResource ImageBackground}">
<Grid> <Grid>
<Image x:Name="RecipeImage" /> <Image x:Name="RecipeImage"
MinimumHeightRequest="175"
MinimumWidthRequest="150"
MaximumHeightRequest="175"
MaximumWidthRequest="150"
Aspect="AspectFill"/>
<HorizontalStackLayout <HorizontalStackLayout
x:Name="Stars" x:Name="Stars"
VerticalOptions="End" VerticalOptions="End"

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentView 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"
x:Class="ShoopNCook.Views.RecipeView"> x:Class="ShoopNCook.Views.RecipeView"
Margin="4,2">
<Border <Border
@ -12,7 +13,9 @@
BackgroundColor="{StaticResource BackgroundSecondary}" BackgroundColor="{StaticResource BackgroundSecondary}"
Padding="10" Padding="10"
MinimumHeightRequest="175" MinimumHeightRequest="175"
MaximumHeightRequest="175"
MinimumWidthRequest="150" MinimumWidthRequest="150"
MaximumWidthRequest="150"
RowDefinitions="*, Auto"> RowDefinitions="*, Auto">
<Grid.GestureRecognizers> <Grid.GestureRecognizers>
<TapGestureRecognizer Tapped="OnRecipeTapped"/> <TapGestureRecognizer Tapped="OnRecipeTapped"/>
@ -23,7 +26,12 @@
StrokeShape="RoundRectangle 20" StrokeShape="RoundRectangle 20"
BackgroundColor="{StaticResource ImageBackground}"> BackgroundColor="{StaticResource ImageBackground}">
<Grid> <Grid>
<Image x:Name="RecipeImage" /> <Image x:Name="RecipeImage"
Aspect="AspectFill"
MinimumHeightRequest="155"
MinimumWidthRequest="130"
MaximumHeightRequest="155"
MaximumWidthRequest="130"/>
<HorizontalStackLayout <HorizontalStackLayout
x:Name="Stars" x:Name="Stars"
VerticalOptions="End" VerticalOptions="End"

@ -23,9 +23,11 @@
Grid.Row="0" Grid.Row="0"
Stroke="Transparent" Stroke="Transparent"
StrokeShape="RoundRectangle 20" StrokeShape="RoundRectangle 20"
MaximumHeightRequest="300"
BackgroundColor="{StaticResource ImageBackground}"> BackgroundColor="{StaticResource ImageBackground}">
<Grid> <Grid>
<Image x:Name="RecipeImage"/> <Image x:Name="RecipeImage"
Aspect="AspectFill"/>
<HorizontalStackLayout <HorizontalStackLayout
x:Name="Stars" x:Name="Stars"
VerticalOptions="End" VerticalOptions="End"

@ -131,7 +131,8 @@
Style="{StaticResource SecondaryBorderShadow}"> Style="{StaticResource SecondaryBorderShadow}">
<Entry <Entry
Style="{StaticResource UserInput}" Style="{StaticResource UserInput}"
Placeholder="New password"/> Placeholder="New password"
IsPassword="True"/>
</Border> </Border>
<Label <Label
Grid.Row="5" Grid.Row="5"
@ -143,7 +144,8 @@
Style="{StaticResource SecondaryBorderShadow}"> Style="{StaticResource SecondaryBorderShadow}">
<Entry <Entry
Style="{StaticResource UserInput}" Style="{StaticResource UserInput}"
Placeholder="New password"/> Placeholder="New password"
IsPassword="True"/>
</Border> </Border>
</Grid> </Grid>

@ -59,7 +59,8 @@
Style="{StaticResource UserInput}" Style="{StaticResource UserInput}"
Grid.Column="2" Grid.Column="2"
Placeholder="Password" Placeholder="Password"
x:Name="PasswordEntry"/> x:Name="PasswordEntry"
IsPassword="True"/>
<ImageButton <ImageButton
Grid.Column="3" Grid.Column="3"
Source="visibility_off.svg" Source="visibility_off.svg"

@ -15,13 +15,6 @@
ColumnDefinitions="*" ColumnDefinitions="*"
MaximumHeightRequest="60"> MaximumHeightRequest="60">
<ImageButton
Grid.Column="0"
HeightRequest="50"
WidthRequest="50"
Source="arrow_back.svg"
HorizontalOptions="Start"/>
<Label <Label
Grid.Column="0" Grid.Column="0"
FontSize="24" FontSize="24"

@ -76,7 +76,7 @@
<Grid <Grid
Grid.Row="2" Grid.Row="2"
Padding="0, 20, 0, 0" Padding="0, 20, 0, 0"
RowDefinitions="Auto, *, Auto, *"> RowDefinitions="Auto, *, Auto, Auto,Auto">
<Label <Label
Grid.Row="0" Grid.Row="0"
Text="Name" Text="Name"
@ -106,6 +106,18 @@
Text="%Profile_Mail%" Text="%Profile_Mail%"
Placeholder="Place your email address here"/> Placeholder="Place your email address here"/>
</Border> </Border>
<Border
Grid.Row="4"
Margin="0, 30, 0, 0"
Stroke="{StaticResource BackgroundPrimary}"
StrokeShape="RoundRectangle 12">
<Button
BackgroundColor="{StaticResource ActionButton}"
FontFamily="PoppinsMedium"
TextColor="White"
Text="Change My Password"
Clicked="ChangeMyPasswordClicked"/>
</Border>

@ -12,4 +12,8 @@ public partial class ProfilePage : ContentPage
{ {
await Navigation.PopAsync(); await Navigation.PopAsync();
} }
private async void ChangeMyPasswordClicked(object sender, EventArgs e)
{
await Shell.Current.Navigation.PushAsync(new ChangePassword()) ;
}
} }

@ -50,6 +50,7 @@
StrokeShape="RoundRectangle 20" StrokeShape="RoundRectangle 20"
BackgroundColor="{StaticResource ImageBackground}"> BackgroundColor="{StaticResource ImageBackground}">
<Image <Image
Aspect="AspectFill"
HeightRequest="250" HeightRequest="250"
x:Name="RecipeImage"/> x:Name="RecipeImage"/>
</Border> </Border>

@ -79,7 +79,8 @@
Style="{StaticResource UserInput}" Style="{StaticResource UserInput}"
Grid.Column="2" Grid.Column="2"
Placeholder="Password" Placeholder="Password"
x:Name="PasswordEntry"/> x:Name="PasswordEntry"
IsPassword="True"/>
<ImageButton <ImageButton
Grid.Column="3" Grid.Column="3"
Source="visibility_off.svg" Source="visibility_off.svg"

Loading…
Cancel
Save