styles popups (sauf review)

master
Anthony RICHARD 2 years ago
parent a6f0abbecc
commit 96463022eb

@ -5,7 +5,7 @@
x:Class="Stim.ConfirmationPopup" x:Class="Stim.ConfirmationPopup"
CanBeDismissedByTappingOutsideOfPopup="False"> CanBeDismissedByTappingOutsideOfPopup="False">
<Grid RowDefinitions="*, *" ColumnDefinitions="*, *"> <Grid RowDefinitions="auto, *" ColumnDefinitions="*, *" Style="{StaticResource popupGrid}">
<Label Grid.ColumnSpan="2" x:Name="placeholder" Style="{StaticResource popupLabel}"/> <Label Grid.ColumnSpan="2" x:Name="placeholder" Style="{StaticResource popupLabel}"/>
<Button Grid.Row="2" Style="{StaticResource popupButton}" Text="Non" Clicked="No"/> <Button Grid.Row="2" Style="{StaticResource popupButton}" Text="Non" Clicked="No"/>
<Button Grid.Row="2" Grid.Column="2" Style="{StaticResource popupButton}" Text="Oui" Clicked="Yes"/> <Button Grid.Row="2" Grid.Column="2" Style="{StaticResource popupButton}" Text="Oui" Clicked="Yes"/>

@ -5,11 +5,11 @@
x:Class="Stim.EntryPopup" x:Class="Stim.EntryPopup"
CanBeDismissedByTappingOutsideOfPopup="False"> CanBeDismissedByTappingOutsideOfPopup="False">
<Grid ColumnDefinitions="*" RowDefinitions="*, *, *, *"> <Grid ColumnDefinitions="*" RowDefinitions="auto, auto, *, *" Style="{StaticResource popupGrid}">
<Label x:Name="placeholder" Style="{StaticResource popupLabel}"/> <Label x:Name="placeholder" Style="{StaticResource popupLabel}"/>
<Entry Grid.Row="1" x:Name="Entrytxt" VerticalOptions="Center" HorizontalOptions="Center"/> <Entry Grid.Row="1" x:Name="Entrytxt" Style="{StaticResource popupEntry}"/>
<Button Grid.Row="2" Text="Valider" Style="{StaticResource popupButton}" Clicked="Valider"/> <Button Grid.Row="2" Text="Valider" Style="{StaticResource popupButton}" Clicked="Valider"/>
<Button Grid.Row="3" Text="Annuler" Style="{StaticResource popupButton}" Clicked="CloseButton"/> <Button Grid.Row="3" Text="Annuler" Style="{StaticResource popupButton}" Clicked="CloseButton"/>
<HorizontalStackLayout x:Name="Error"/> <HorizontalStackLayout x:Name="Error"/>
</Grid> </Grid>
</toolkit:Popup> </toolkit:Popup>

@ -5,7 +5,7 @@
x:Class="Stim.MessagePopup" x:Class="Stim.MessagePopup"
CanBeDismissedByTappingOutsideOfPopup ="False"> CanBeDismissedByTappingOutsideOfPopup ="False">
<Grid RowDefinitions="*, *" ColumnDefinitions="*"> <Grid RowDefinitions="auto, *" ColumnDefinitions="*" Style="{StaticResource popupGrid}">
<Label x:Name="placeholder" Style="{StaticResource popupLabel}"/> <Label x:Name="placeholder" Style="{StaticResource popupLabel}"/>
<Button Grid.Row="1" Text="Fermer" Style="{StaticResource popupButton}" Clicked="CloseButton"/> <Button Grid.Row="1" Text="Fermer" Style="{StaticResource popupButton}" Clicked="CloseButton"/>
</Grid> </Grid>

@ -394,6 +394,23 @@
<Setter Property="VerticalOptions" Value="Center"/> <Setter Property="VerticalOptions" Value="Center"/>
</Style> </Style>
<Style TargetType="Button" x:Key="popupButton">
<Setter Property="FontSize" Value="30"/>
<Setter Property="BorderColor" Value="{StaticResource Secondary}"/>
<Setter Property="BorderWidth" Value="2"/>
<Setter Property="HorizontalOptions" Value="Center"/>
<Setter Property="VerticalOptions" Value="Center" />
<Setter Property="Background" Value="{StaticResource Transparent}"/>
</Style>
<Style TargetType="Grid" x:Key="popupGrid">
<Setter Property="Background" Value="{StaticResource Tertiary}"/>
</Style>
<Style TargetType="Entry" x:Key="popupEntry">
<Setter Property="VerticalOptions" Value="Center"/>
</Style>
<Style TargetType="Button" x:Key="followButton"> <Style TargetType="Button" x:Key="followButton">
<Setter Property="Text" Value="Suivre"/> <Setter Property="Text" Value="Suivre"/>
<Setter Property="Background" Value="{StaticResource Transparent}"/> <Setter Property="Background" Value="{StaticResource Transparent}"/>
@ -405,15 +422,6 @@
<Setter Property="Margin" Value="10"/> <Setter Property="Margin" Value="10"/>
</Style> </Style>
<Style TargetType="Button" x:Key="popupButton">
<Setter Property="FontSize" Value="30"/>
<Setter Property="BorderColor" Value="{StaticResource Secondary}"/>
<Setter Property="BorderWidth" Value="2"/>
<Setter Property="HorizontalOptions" Value="Center"/>
<Setter Property="VerticalOptions" Value="Center" />
<Setter Property="Background" Value="{StaticResource Transparent}"/>
</Style>
<Style TargetType="ImageButton" x:Key="addButton"> <Style TargetType="ImageButton" x:Key="addButton">
<Setter Property="Source" Value="add_white.png"/> <Setter Property="Source" Value="add_white.png"/>
<Setter Property="Background" Value="{StaticResource Transparent}"/> <Setter Property="Background" Value="{StaticResource Transparent}"/>

Loading…
Cancel
Save