Modification des vues windows
continuous-integration/drone/push Build is failing Details

UI_Windows
Raphael LACOTE 2 years ago
commit b866c9a81a

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.CV_Planification">
<StackLayout BackgroundColor="{StaticResource Yellow300Accent}" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4">
</StackLayout>
<Image Source="logo_sans_fond.png" HeightRequest="100" Margin="50,10,0,0" Grid.Column="0" Grid.Row="0"/>
<Button Text="Mon compte" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Grid.Column="4" Grid.Row="0" MaximumWidthRequest="200" MaximumHeightRequest="50" ></Button>
<StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="1" Grid.Column="0" Grid.RowSpan="6">
<Button Text="ACCUEIL" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="1" ></Button>
<Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="2"></Button>
<Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="3"></Button>
<Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="4"></Button>
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Tertiary}" TextColor="{StaticResource White}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="5"></Button>
<Button Text="STATISTIQUES" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="6"></Button>
</StackLayout>
</Grid>
</StackLayout>
</ContentView>

@ -0,0 +1,9 @@
namespace IHM.Desktop;
public partial class CV_Planification : ContentView
{
public CV_Planification()
{
InitializeComponent();
}
}

@ -4,21 +4,54 @@
x:Class="IHM.Desktop.Dashboard"
Title="Dashboard">
<StackLayout BackgroundColor="{StaticResource Yellow300Accent}" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4">
</StackLayout>
<Image Source="logo_sans_fond.png" HeightRequest="100" Margin="50,10,0,0" Grid.Column="0" Grid.Row="0"/>
<Button Text="Mon compte" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Grid.Column="4" Grid.Row="0" MaximumWidthRequest="200" MaximumHeightRequest="50" ></Button>
<StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="1" Grid.Column="0" Grid.RowSpan="6">
<Button Text="ACCUEIL" BackgroundColor="{StaticResource Tertiary}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="1" ></Button>
<Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="2"></Button>
<Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="3"></Button>
<Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="4"></Button>
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource White}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="5"></Button>
<Button Text="STATISTIQUES" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="6"></Button>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Blue300Accent}" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="6">
<ContentView>
<ContentView.Content=""/>
</ContentView>
</StackLayout>
</Grid>
<StackLayout BackgroundColor="{StaticResource Gray900}" VerticalOptions="Start">
<Button Text="Mon compte" BackgroundColor="{StaticResource Yellow100Accent}" Padding="10" Margin="10" HorizontalOptions="End"></Button>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource Gray900}" HorizontalOptions="StartAndExpand" VerticalOptions="FillAndExpand">
<Button Text="ACCUEIL" BackgroundColor="{StaticResource Primary}" TextColor="{StaticResource Yellow300Accent}" Padding="20" Margin="20" ></Button>
<Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20" Clicked="Button_compte"></Button>
<Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20" Clicked="Button_operation"></Button>
<Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20" Clicked="Button_echeancier"></Button>
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Yellow100Accent}" Padding="20" Margin="20" Clicked="Button_planification"></Button>
</StackLayout>
</StackLayout>

@ -3,48 +3,45 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="IHM.Desktop.Planification"
Title="Planification">
<VerticalStackLayout Margin="20">
<Label
Style="{StaticResource TitreWindows}"
Text="PLANIFICATION"
VerticalOptions="StartAndExpand"/>
<HorizontalStackLayout HorizontalOptions="Center" VerticalOptions="Fill">
<Button
x:Name="SavePlanification"
Text="Enregistrer une planification"
Style="{StaticResource WindowsButton}"/>
<Button
x:Name="DelPlanification"
Text="Supprimer une planification"
Style="{StaticResource WindowsButton}"/>
</HorizontalStackLayout>
<HorizontalStackLayout HorizontalOptions="Center" VerticalOptions="Fill">
<Border Background="Green"
StrokeThickness="2"
Padding="16,8"
StrokeShape="RoundRectangle 30,30,30,30"
Stroke="Black">
<Label Text=" -- BINDING -- " FontFamily="Comic sans MS"/>
</Border>
<Border Background="Brown"
StrokeThickness="2"
Padding="16,8"
StrokeShape="RoundRectangle 30,30,30,30"
Stroke="Black">
<Label Text=" -- BINDING -- " FontFamily="Comic sans MS"/>
</Border>
</HorizontalStackLayout>
</VerticalStackLayout>
<StackLayout BackgroundColor="{StaticResource Yellow300Accent}" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4">
</StackLayout>
<Image Source="logo_sans_fond.png" HeightRequest="100" Margin="50,10,0,0" Grid.Column="0" Grid.Row="0"/>
<Button Text="Mon compte" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Grid.Column="4" Grid.Row="0" MaximumWidthRequest="200" MaximumHeightRequest="50" ></Button>
<StackLayout BackgroundColor="{StaticResource Secondary}" Grid.Row="1" Grid.Column="0" Grid.RowSpan="6">
<Button Text="ACCUEIL" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="1" ></Button>
<Button Text="COMPTE" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="2"></Button>
<Button Text="OPERATION" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="3"></Button>
<Button Text="ECHEANCIER" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="4"></Button>
<Button Text="PLANIFICATION" BackgroundColor="{StaticResource Tertiary}" TextColor="{StaticResource White}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="5"></Button>
<Button Text="STATISTIQUES" BackgroundColor="{StaticResource Yellow100Accent}" TextColor="{StaticResource Secondary}" Padding="20" Margin="21" Grid.Column="0" Grid.Row="6"></Button>
</StackLayout>
</Grid>
</StackLayout>

@ -8,7 +8,7 @@ public partial class Planification : ContentPage
public Planification()
{
InitializeComponent();
BindingContext = Mgr;
}

@ -96,6 +96,9 @@
<MauiXaml Update="Desktop\ChangePassword.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Desktop\CV_Planification.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Desktop\DashBoard.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>

Loading…
Cancel
Save