diff --git a/MangaMap/Resources/Images/star.png b/MangaMap/Resources/Images/star.png
deleted file mode 100644
index 49ec51e..0000000
Binary files a/MangaMap/Resources/Images/star.png and /dev/null differ
diff --git a/MangaMap/Resources/Images/star_empty.svg b/MangaMap/Resources/Images/star_empty.svg
new file mode 100644
index 0000000..2ee298f
--- /dev/null
+++ b/MangaMap/Resources/Images/star_empty.svg
@@ -0,0 +1,3 @@
+
diff --git a/MangaMap/Resources/Images/star_full.svg b/MangaMap/Resources/Images/star_full.svg
new file mode 100644
index 0000000..58bea28
--- /dev/null
+++ b/MangaMap/Resources/Images/star_full.svg
@@ -0,0 +1,3 @@
+
diff --git a/MangaMap/Views/FicheAnime.xaml.cs b/MangaMap/Views/FicheAnime.xaml.cs
index 294f0b2..98090ee 100644
--- a/MangaMap/Views/FicheAnime.xaml.cs
+++ b/MangaMap/Views/FicheAnime.xaml.cs
@@ -12,9 +12,7 @@ public partial class ficheAnime : ContentPage, INotifyPropertyChanged
public ficheAnime()
{
- List genres = new List() { "Action", "Aventure" };
- AnimeModel = new Oeuvre("Evangelion", genres, "Type de l'oeuvre", "Description de l'oeuvre", 5, 12, "Chemin/vers/l'affiche.png");
-
+
InitializeComponent();
this.BindingContext = this;
@@ -29,4 +27,22 @@ public partial class ficheAnime : ContentPage, INotifyPropertyChanged
this.BindingContext = this;
}
+ private void SetNote(float note)
+ {
+ note = (int)note; // Tronquer à un entier car nous ne gérons actuellement pas les demi-étoiles
+ var starImages = star.Children.OfType().Reverse().ToList();
+ foreach (var img in starImages)
+ {
+ if (note > 0)
+ {
+ img.Opacity = 1;
+ note--;
+ }
+ else
+ {
+ img.Opacity = 0;
+ }
+ }
+ }
+
}
\ No newline at end of file
diff --git a/MangaMap/Views/ficheAnime.xaml b/MangaMap/Views/ficheAnime.xaml
index 157c2d1..a7e4538 100644
--- a/MangaMap/Views/ficheAnime.xaml
+++ b/MangaMap/Views/ficheAnime.xaml
@@ -29,19 +29,20 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-