ADD : update views (Image book ToDo)

homepage-05-09
Lou BRODA 1 year ago
parent 804529aa0b
commit 34191293d5

@ -32,7 +32,7 @@
<ItemGroup> <ItemGroup>
<!-- App Icon --> <!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> <MauiIcon Include="Resources\AppIcon\appicon.png" />
<!-- Splash Screen --> <!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="456" height="456" viewBox="0 0 456 456" version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="456" height="456" fill="#512BD4" />
</svg>

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

@ -4,33 +4,34 @@
xmlns:contentView="clr-namespace:LivreLand.View.ContentViews" xmlns:contentView="clr-namespace:LivreLand.View.ContentViews"
x:Class="LivreLand.View.ContentViews.AlphabetVerticalMenuView"> x:Class="LivreLand.View.ContentViews.AlphabetVerticalMenuView">
<VerticalStackLayout Margin="0,0,5,0"> <VerticalStackLayout Margin="0,0,5,0"
Spacing="-4">
<contentView:LetterVerticalMenuView ButtonLetter="A"/> <contentView:LetterVerticalMenuView ButtonLetter="A"/>
<contentView:LetterVerticalMenuView ButtonLetter="B"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="B"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="C"/> <contentView:LetterVerticalMenuView ButtonLetter="C"/>
<contentView:LetterVerticalMenuView ButtonLetter="D"/> <contentView:LetterVerticalMenuView ButtonLetter="D"/>
<contentView:LetterVerticalMenuView ButtonLetter="E"/> <contentView:LetterVerticalMenuView ButtonLetter="E"/>
<contentView:LetterVerticalMenuView ButtonLetter="F"/> <contentView:LetterVerticalMenuView ButtonLetter="F"/>
<contentView:LetterVerticalMenuView ButtonLetter="G"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="G"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="H"/> <contentView:LetterVerticalMenuView ButtonLetter="H"/>
<contentView:LetterVerticalMenuView ButtonLetter="I"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="I"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="J"/> <contentView:LetterVerticalMenuView ButtonLetter="J"/>
<contentView:LetterVerticalMenuView ButtonLetter="K"/> <contentView:LetterVerticalMenuView ButtonLetter="K"/>
<contentView:LetterVerticalMenuView ButtonLetter="L"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="L"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="M"/> <contentView:LetterVerticalMenuView ButtonLetter="M"/>
<contentView:LetterVerticalMenuView ButtonLetter="N"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="N"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="O"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="O"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="P"/> <contentView:LetterVerticalMenuView ButtonLetter="P"/>
<contentView:LetterVerticalMenuView ButtonLetter="Q"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="Q"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="R"/> <contentView:LetterVerticalMenuView ButtonLetter="R"/>
<contentView:LetterVerticalMenuView ButtonLetter="S"/> <contentView:LetterVerticalMenuView ButtonLetter="S"/>
<contentView:LetterVerticalMenuView ButtonLetter="T"/> <contentView:LetterVerticalMenuView ButtonLetter="T"/>
<contentView:LetterVerticalMenuView ButtonLetter="U"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="U"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="V"/> <contentView:LetterVerticalMenuView ButtonLetter="V"/>
<contentView:LetterVerticalMenuView ButtonLetter="W"/> <contentView:LetterVerticalMenuView ButtonLetter="W"/>
<contentView:LetterVerticalMenuView ButtonLetter="X"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="X"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="Y"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="Y"/>-->
<contentView:LetterVerticalMenuView ButtonLetter="Z"/> <!--<contentView:LetterVerticalMenuView ButtonLetter="Z"/>-->
</VerticalStackLayout> </VerticalStackLayout>
</ContentView> </ContentView>

@ -8,9 +8,6 @@
<Label x:Name="letterText" <Label x:Name="letterText"
Text="{Binding ButtonLetter}" Text="{Binding ButtonLetter}"
TextColor="{StaticResource Blue100Accent}"/> TextColor="{StaticResource Blue100Accent}"/>
<Grid.GestureRecognizers>
<TapGestureRecognizer Tapped="OnLetterTapped"/>
</Grid.GestureRecognizers>
</Grid> </Grid>
</ContentView> </ContentView>

@ -60,6 +60,7 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label Text="Scanner des codes-barres" <Label Text="Scanner des codes-barres"
LineBreakMode="WordWrap"
MaxLines="2" MaxLines="2"
Style="{StaticResource HomeButtonText}" Style="{StaticResource HomeButtonText}"
Grid.Column="0"/> Grid.Column="0"/>

@ -7,6 +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)); Size = new Size(0.8 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density), 0.5 * (DeviceDisplay.Current.MainDisplayInfo.Width / DeviceDisplay.Current.MainDisplayInfo.Density));
} }
} }

@ -5,8 +5,7 @@
x:Class="LivreLand.View.ContentViews.PopupLetterView"> x:Class="LivreLand.View.ContentViews.PopupLetterView">
<Grid BackgroundColor="{StaticResource HeaderGray}"> <Grid BackgroundColor="{StaticResource HeaderGray}">
<Label x:Name="letterText" <Label Style="{StaticResource HomeTitle}"/>
Style="{StaticResource HomeTitle}"/>
</Grid> </Grid>
</toolkit:Popup> </toolkit:Popup>

@ -7,6 +7,5 @@ public partial class PopupLetterView : Popup
public PopupLetterView(string letter) public PopupLetterView(string letter)
{ {
InitializeComponent(); InitializeComponent();
letterText.Text = letter;
} }
} }

@ -42,6 +42,97 @@
ButtonBlackIconVisible="False"/> ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/> <contentView:SeparatorBigCutStartView/>
<!--Cixin Liu-->
<contentView:HomeButtonView ButtonTitle="Cixin Liu"
ButtonIcon="book.png"
ButtonNumber="3"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--Daniel Pennac-->
<contentView:HomeButtonView ButtonTitle="Daniel Pennac"
ButtonIcon="book.png"
ButtonNumber="2"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--Evgenij Ivanovič Zamâtin-->
<contentView:HomeButtonView ButtonTitle="Evgenij Ivanovič Zamâtin"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--Frank Herbert-->
<contentView:HomeButtonView ButtonTitle="Frank Herbert"
ButtonIcon="book.png"
ButtonNumber="6"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--Herbert George Wells-->
<contentView:HomeButtonView ButtonTitle="Herbert George Wells"
ButtonIcon="book.png"
ButtonNumber="3"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--James S. A. Corey-->
<contentView:HomeButtonView ButtonTitle="James S. A. Corey"
ButtonIcon="book.png"
ButtonNumber="6"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--James Tynion-->
<contentView:HomeButtonView ButtonTitle="James Tynion"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--James Tynion (IV)-->
<contentView:HomeButtonView ButtonTitle="James Tynion (IV)"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--Ken Kesey-->
<contentView:HomeButtonView ButtonTitle="Ken Kesey"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--Ken Liu-->
<contentView:HomeButtonView ButtonTitle="Ken Liu"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
</VerticalStackLayout> </VerticalStackLayout>
</ScrollView> </ScrollView>
</Grid> </Grid>

@ -41,6 +41,96 @@
ButtonBlackIconVisible="False"/> ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/> <contentView:SeparatorBigCutStartView/>
<!--2021-->
<contentView:HomeButtonView ButtonTitle="2021"
ButtonIcon="book.png"
ButtonNumber="6"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--2020-->
<contentView:HomeButtonView ButtonTitle="2020"
ButtonIcon="book.png"
ButtonNumber="6"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--2019-->
<contentView:HomeButtonView ButtonTitle="2019"
ButtonIcon="book.png"
ButtonNumber="3"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--2018-->
<contentView:HomeButtonView ButtonTitle="2018"
ButtonIcon="book.png"
ButtonNumber="2"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--2016-->
<contentView:HomeButtonView ButtonTitle="2016"
ButtonIcon="book.png"
ButtonNumber="4"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--2015-->
<contentView:HomeButtonView ButtonTitle="2015"
ButtonIcon="book.png"
ButtonNumber="4"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--2012-->
<contentView:HomeButtonView ButtonTitle="2012"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--2010-->
<contentView:HomeButtonView ButtonTitle="2010"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--2004-->
<contentView:HomeButtonView ButtonTitle="2004"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
<!--1997-->
<contentView:HomeButtonView ButtonTitle="1997"
ButtonIcon="book.png"
ButtonNumber="1"
ButtonRedIconVisible="True"
ButtonBlackIconVisible="False"/>
<contentView:SeparatorBigCutStartView/>
</VerticalStackLayout> </VerticalStackLayout>
</ScrollView> </ScrollView>
</Grid> </Grid>

@ -42,6 +42,42 @@
ButtonBlackIconVisible="True"/> ButtonBlackIconVisible="True"/>
<contentView:SeparatorBigCutStartView/> <contentView:SeparatorBigCutStartView/>
<!--2 étoiles-->
<contentView:HomeButtonView ButtonTitle="2 étoiles"
ButtonIcon="book.png"
ButtonNumber="2"
ButtonRedIconVisible="False"
ButtonBlackIconVisible="True"/>
<contentView:SeparatorBigCutStartView/>
<!--3 étoiles-->
<contentView:HomeButtonView ButtonTitle="3 étoiles"
ButtonIcon="book.png"
ButtonNumber="2"
ButtonRedIconVisible="False"
ButtonBlackIconVisible="True"/>
<contentView:SeparatorBigCutStartView/>
<!--4 étoiles-->
<contentView:HomeButtonView ButtonTitle="4 étoiles"
ButtonIcon="book.png"
ButtonNumber="2"
ButtonRedIconVisible="False"
ButtonBlackIconVisible="True"/>
<contentView:SeparatorBigCutStartView/>
<!--5 étoiles-->
<contentView:HomeButtonView ButtonTitle="5 étoiles"
ButtonIcon="book.png"
ButtonNumber="2"
ButtonRedIconVisible="False"
ButtonBlackIconVisible="True"/>
<contentView:SeparatorBigCutStartView/>
</VerticalStackLayout> </VerticalStackLayout>
</ScrollView> </ScrollView>
</Grid> </Grid>

@ -24,12 +24,6 @@
<toolkit:IconTintColorBehavior TintColor="{StaticResource PinkOrange}"/> <toolkit:IconTintColorBehavior TintColor="{StaticResource PinkOrange}"/>
</ImageButton.Behaviors> </ImageButton.Behaviors>
</ImageButton> </ImageButton>
<Button VerticalOptions="Center"
ImageSource="plus.png"
BackgroundColor="Transparent"
MaximumHeightRequest="20"
MaximumWidthRequest="20"
Grid.Column="2"/>
</Grid> </Grid>
</ContentView> </ContentView>

@ -31,7 +31,7 @@
MaximumWidthRequest="20" MaximumWidthRequest="20"
Grid.Column="0"> Grid.Column="0">
<ImageButton.Behaviors> <ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/> <toolkit:IconTintColorBehavior TintColor="{AppThemeBinding Light={StaticResource PinkOrange}, Dark={StaticResource White}}"/>
</ImageButton.Behaviors> </ImageButton.Behaviors>
</ImageButton> </ImageButton>
<Label Text="{Binding HeaderBackButtonText}" <Label Text="{Binding HeaderBackButtonText}"

@ -18,7 +18,7 @@
HeaderPlusButtonVisible="True" HeaderPlusButtonVisible="True"
HeaderSwitchButtonVisible="True" HeaderSwitchButtonVisible="True"
Grid.Row="0"/> Grid.Row="0"/>
<ScrollView Grid.Row="2"> <ScrollView Grid.Row="2" Style="{StaticResource Key=test}">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="40"/> <RowDefinition Height="40"/>
@ -46,6 +46,15 @@
<DataTemplate> <DataTemplate>
<VerticalStackLayout Margin="10" <VerticalStackLayout Margin="10"
Spacing="20"> Spacing="20">
<VisualStateManager.VisualStateGroups x:Name="SelectionStates">
<VisualStateGroup>
<VisualState x:Name="Selected">
<VisualState.Setters>
<Setter Property="BackgroundColor" Value="Transparent" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid> <Grid>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/> <ColumnDefinition Width="auto"/>
@ -64,6 +73,11 @@
HeightRequest="100" HeightRequest="100"
Grid.Column="0" Grid.Column="0"
Grid.RowSpan="5"/> Grid.RowSpan="5"/>
<Image Source="couverture_la_horde_du_contrevent.png"
WidthRequest="90"
HeightRequest="90"
Grid.Column="0"
Grid.RowSpan="5"/>
<Label Text="{Binding Title}" <Label Text="{Binding Title}"
Style="{StaticResource MasterTitleBookText}" Style="{StaticResource MasterTitleBookText}"
Grid.Column="2" Grid.Column="2"

Loading…
Cancel
Save