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

@ -2,11 +2,27 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Echeancier" x:Class="IHM.Desktop.Echeancier"
Title="Echeancier"> Title="Echeancier"
<VerticalStackLayout> BackgroundColor="{StaticResource Yellow300Accent}">
<VerticalStackLayout Margin="20">
<Label <Label
Text="Welcome to .NET MAUI!" Style="{StaticResource TitreWindows}"
VerticalOptions="Center" Text="ECHEANCIER"
HorizontalOptions="Center" /> 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> </VerticalStackLayout>
</ContentPage> </ContentPage>

@ -2,11 +2,35 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Operations" x:Class="IHM.Desktop.Operations"
Title="Operations"> Title="Operations"
BackgroundColor="{StaticResource Yellow300Accent}">
<VerticalStackLayout> <VerticalStackLayout>
<Label <Label
Text="Welcome to .NET MAUI!" Style="{StaticResource TitreWindows}"
VerticalOptions="Center" Text="OPERATION"
HorizontalOptions="Center" /> 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> </VerticalStackLayout>
</ContentPage> </ContentPage>

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

@ -397,4 +397,21 @@
<Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" /> <Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
</Style> </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> </ResourceDictionary>

Loading…
Cancel
Save