ADD : Corner Radius for Popup & init colors unless icons

homepage-05-09
Lou BRODA 1 year ago
parent 17bc7d5746
commit ca267e7af5

@ -177,51 +177,51 @@
</Style>
<Style TargetType="Label" x:Key="HeaderTitle">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource Black}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="Medium"/>
<Setter Property="FontAttributes" Value="Bold"/>
</Style>
<Style TargetType="Label" x:Key="HomeTitle">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource Black}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="40"/>
<Setter Property="FontAttributes" Value="Bold"/>
</Style>
<Style TargetType="Label" x:Key="DetailsLivreTitle">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource Black}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="Small"/>
<Setter Property="FontAttributes" Value="Bold"/>
</Style>
<Style TargetType="Label" x:Key="DetailsLivreBody">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource TextGray}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource TextGray}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="Body"/>
</Style>
<Style TargetType="Label" x:Key="DetailsButtonBody">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource TextGray}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource TextGray}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="Medium"/>
</Style>
<Style TargetType="Label" x:Key="MasterTitleBookText">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource Black}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="Medium"/>
<Setter Property="FontAttributes" Value="Bold"/>
</Style>
<Style TargetType="Label" x:Key="MasterAuthorBookText">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource Black}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="Small"/>
</Style>
<Style TargetType="Label" x:Key="MasterStateBookText">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource TextGray}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource TextGray}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="Micro"/>
</Style>
<Style TargetType="Label" x:Key="HomeButtonText">
<Setter Property="TextColor" Value="{AppThemeBinding Light={DynamicResource Black}, Dark={StaticResource White}}"/>
<Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}"/>
<Setter Property="FontSize" Value="Medium"/>
</Style>

@ -35,7 +35,7 @@
<VerticalStackLayout Grid.Row="2">
<VerticalStackLayout.BackgroundColor>
<AppThemeBinding Light="{DynamicResource LightGray}" Dark="{StaticResource Black}" />
<AppThemeBinding Light="{StaticResource LightGray}" Dark="{StaticResource Black}" />
</VerticalStackLayout.BackgroundColor>
<contentView:SeparatorEntireView/>
@ -81,7 +81,7 @@
<VerticalStackLayout Grid.Row="6">
<VerticalStackLayout.BackgroundColor>
<AppThemeBinding Light="{DynamicResource LightGray}" Dark="{StaticResource Black}" />
<AppThemeBinding Light="{StaticResource LightGray}" Dark="{StaticResource Black}" />
</VerticalStackLayout.BackgroundColor>
<contentView:SeparatorEntireView/>

@ -25,7 +25,7 @@ public partial class HomeButtonView : ContentView
set => SetValue(HomeButtonView.ButtonNumberProperty, value);
}
public static readonly BindableProperty ButtonIconColorProperty = BindableProperty.Create(nameof(ButtonIconColor), typeof(Color), typeof(HomeButtonView));
public static readonly BindableProperty ButtonIconColorProperty = BindableProperty.Create(nameof(ButtonIconColor), typeof(Color), typeof(HomeButtonView), Colors.Black);
public Color ButtonIconColor
{
get => (Color)GetValue(HomeButtonView.ButtonIconColorProperty);

@ -5,8 +5,10 @@
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="LivreLand.View.ContentViews.PopupHomePlusButtonView"
HorizontalOptions="End"
VerticalOptions="Start">
VerticalOptions="Start"
Color="Transparent">
<Border>
<Grid BackgroundColor="{DynamicResource PopupBackground}">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
@ -119,5 +121,9 @@
</Image>
</Grid>
</Grid>
<Border.StrokeShape>
<RoundRectangle CornerRadius="10" />
</Border.StrokeShape>
</Border>
</toolkit:Popup>

@ -7,6 +7,7 @@
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="300"/>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Frame CornerRadius="10"
@ -18,6 +19,11 @@
HeightRequest="50"
HorizontalOptions="Start"/>
</Frame>
<Grid Grid.Column="3"
VerticalOptions="Center">
<Label Text="Annuler"
Style="{StaticResource DetailsLivreBody}"/>
</Grid>
</Grid>

@ -7,7 +7,7 @@
HeightRequest="1"
HorizontalOptions="Fill">
<BoxView.Color>
<AppThemeBinding Light="{DynamicResource HeaderSeparatorGray}" Dark="{StaticResource White}" />
<AppThemeBinding Light="{StaticResource HeaderSeparatorGray}" Dark="{StaticResource White}" />
</BoxView.Color>
</BoxView>
</Grid>

@ -7,7 +7,7 @@
HeightRequest="1"
HorizontalOptions="Fill">
<BoxView.Color>
<AppThemeBinding Light="{DynamicResource HeaderSeparatorGray}" Dark="{StaticResource White}" />
<AppThemeBinding Light="{StaticResource HeaderSeparatorGray}" Dark="{StaticResource White}" />
</BoxView.Color>
</BoxView>
</Grid>

@ -6,7 +6,7 @@
<BoxView HeightRequest="1"
HorizontalOptions="Fill">
<BoxView.Color>
<AppThemeBinding Light="{DynamicResource HeaderSeparatorGray}" Dark="{StaticResource White}" />
<AppThemeBinding Light="{StaticResource HeaderSeparatorGray}" Dark="{StaticResource White}" />
</BoxView.Color>
</BoxView>
</Grid>

@ -17,7 +17,7 @@
HeaderBackButtonText="Tous"
HeaderPlusButtonVisible="False"
HeaderSwitchButtonVisible="False"
HeaderColor="{DynamicResource HeaderGray}"/>
HeaderColor="{StaticResource HeaderGray}"/>
<contentView:SeparatorEntireView/>
</VerticalStackLayout>

@ -38,7 +38,7 @@
<contentView:HomeButtonView ButtonTitle="Alain Damasio"
ButtonIcon="book_fill.png"
ButtonNumber="2"
ButtonIconColor="{DynamicResource PinkOrange}"/>
ButtonIconColor="{StaticResource PinkOrange}"/>
<contentView:SeparatorBigCutStartView/>
</VerticalStackLayout>

@ -24,7 +24,7 @@
SelectionChanged="OnSelectionChanged">
<CollectionView.GroupHeaderTemplate>
<DataTemplate>
<Grid BackgroundColor="{DynamicResource HeaderGray}">
<Grid BackgroundColor="{StaticResource HeaderGray}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10"/>
<ColumnDefinition Width="auto"/>

Loading…
Cancel
Save