Modification pour les vues windows et ajout de styles
continuous-integration/drone/push Build is failing Details

UI_Windows
Raphael LACOTE 2 years ago
parent 8e616abb3a
commit da7fac375f

@ -4,16 +4,14 @@
x:Class="IHM.Desktop.Compte"
Title="Compte"
BackgroundColor="{StaticResource Yellow300Accent}">
<StackLayout Margin="20" Orientation="Vertical">
<Label
FontAttributes="Bold"
Text="VOTRE COMPTE"
VerticalOptions="StartAndExpand"
HorizontalOptions="Center"
FontFamily="Comic Sans MS"
FontSize="30"/>
Style="{StaticResource TitreWindows}"/>
<Label
@ -28,14 +26,8 @@
<Button
x:Name="ConnexionButton"
Text="Modifier votre solde"
TextColor="Black"
VerticalOptions="Fill"
Margin="20"
CornerRadius="20"
BorderWidth="2"
BorderColor="Black"
FontFamily="Comic Sans MS"
Background="{StaticResource TestColor}"/>
Style="{StaticResource WindowsButton}"
VerticalOptions="Fill"/>
</StackLayout>

@ -2,11 +2,27 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Echeancier"
Title="Echeancier">
<VerticalStackLayout>
Title="Echeancier"
BackgroundColor="{StaticResource Yellow300Accent}">
<VerticalStackLayout Margin="20">
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
Style="{StaticResource TitreWindows}"
Text="ECHEANCIER"
VerticalOptions="StartAndExpand"/>
<HorizontalStackLayout>
<Button
x:Name="SaveEcheance"
Text="Enregistrer une échéance"
Style="{StaticResource WindowsButton}"/>
<Button
x:Name="DelEcheance"
Text="Supprimer une échéance"
Style="{StaticResource WindowsButton}"/>
</HorizontalStackLayout>
</VerticalStackLayout>
</ContentPage>

@ -2,11 +2,35 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Operations"
Title="Operations">
Title="Operations"
BackgroundColor="{StaticResource Yellow300Accent}">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
Style="{StaticResource TitreWindows}"
Text="OPERATION"
VerticalOptions="StartAndExpand"/>
<HorizontalStackLayout>
<Button
x:Name="AddCredit"
Text="Effectuer un crédit"
Style="{StaticResource WindowsButton}"/>
<Button
x:Name="RetireOperation"
Text="Retirer une opération"
Style="{StaticResource WindowsButton}"/>
<Button
x:Name="AddDebit"
Text="effectuer un débit"
Style="{StaticResource WindowsButton}"/>
<Button
x:Name="DelOperation"
Text="Supprimer une opération"
Style="{StaticResource WindowsButton}"/>
</HorizontalStackLayout>
</VerticalStackLayout>
</ContentPage>

@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Planification"
Title="Planification">
<StackLayout BackgroundColor="{StaticResource Yellow300Accent}" >
<Grid>
<Grid.RowDefinitions>
@ -31,7 +32,7 @@
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Tertiary}" TextColor="{StaticResource White}" Padding="20" Margin="21" ></Button>
<Button Text="STATISTIQUES" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" ></Button>
</VerticalStackLayout>
-->s
-->
</Grid>

@ -397,4 +397,21 @@
<Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
</Style>
<Style TargetType="Label" x:Key="TitreWindows">
<Setter Property="FontAttributes" Value="Bold"/>
<Setter Property="FontFamily" Value="Comic sans MS"/>
<Setter Property="FontSize" Value="30"/>
<Setter Property="HorizontalOptions" Value="Center"/>
</Style>
<Style TargetType="Button" x:Key="WindowsButton">
<Setter Property="TextColor" Value="Black"/>
<Setter Property="Margin" Value="20"/>
<Setter Property="CornerRadius" Value="20"/>
<Setter Property="BorderWidth" Value="2"/>
<Setter Property="BorderColor" Value="Black"/>
<Setter Property="FontFamily" Value="Comic sans MS"/>
<Setter Property="Background" Value="{StaticResource TestColor}"/>
</Style>
</ResourceDictionary>

Loading…
Cancel
Save