From a8010c01c78efa48f057df846416dce051f0dfe5 Mon Sep 17 00:00:00 2001 From: lobroda Date: Sat, 9 Sep 2023 14:15:50 +0100 Subject: [PATCH] =?UTF-8?q?ADD=20:=20avancement=20view=20+=20mise=20en=20p?= =?UTF-8?q?lace=20popup=20(=C3=A0=20revoir)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LivreLand/Resources/Styles/Colors.xaml | 2 + .../ContentViews/PopupHomePlusButtonView.xaml | 46 ++++++++++++++----- .../PopupHomePlusButtonView.xaml.cs | 1 + 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/LivreLand/Resources/Styles/Colors.xaml b/LivreLand/Resources/Styles/Colors.xaml index 3a4ab54..65a06bf 100644 --- a/LivreLand/Resources/Styles/Colors.xaml +++ b/LivreLand/Resources/Styles/Colors.xaml @@ -10,6 +10,8 @@ #f2f0f6 #c9c9cb + #f5f5f5 + #fd0342 #512BD4 diff --git a/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml b/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml index d347fd1..c855895 100644 --- a/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml +++ b/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml @@ -1,23 +1,35 @@ - + x:Class="LivreLand.View.ContentViews.PopupHomePlusButtonView" + HorizontalOptions="End" + VerticalOptions="Start"> + + - + + + + - - diff --git a/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml.cs b/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml.cs index 5d8a934..0f4ad94 100644 --- a/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml.cs +++ b/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml.cs @@ -7,5 +7,6 @@ public partial class PopupHomePlusButtonView : Popup public PopupHomePlusButtonView() { InitializeComponent(); + Size = new Size(0.7 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density), 0.5 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density)); } } \ No newline at end of file