ALL PAGES OPTI FULL (jules tu sera content) / = view

test_old_branch
Jérémy Mouyon 1 year ago
parent 1d23538ebc
commit c1b71c9d80

@ -20,62 +20,19 @@
Aspect="AspectFit"
/>
<!-- Ci dessous, la content view qu'il faudra binder quand on sera faire-->
<!-- Play / Continue / Leaderboard / Rules / Settings / Credits -->
<controls:ButtonShadow></controls:ButtonShadow>
<Border Stroke="Transparent">
<Button
Text="Play"
Style="{StaticResource MainButton}"/>
<Border.Shadow>
<Shadow></Shadow>
</Border.Shadow>
</Border>
<controls:ButtonShadow></controls:ButtonShadow>
<Border Stroke="Transparent">
<Button
Text="Continue"
Style="{StaticResource MainButton}"/>
<Border.Shadow>
<Shadow></Shadow>
</Border.Shadow>
</Border>
<controls:ButtonShadow></controls:ButtonShadow>
<Border Stroke="Transparent">
<Button
Text="Leaderboard"
Style="{StaticResource MainButton}"/>
<Border.Shadow>
<Shadow></Shadow>
</Border.Shadow>
</Border>
<controls:ButtonShadow></controls:ButtonShadow>
<Border Stroke="Transparent">
<Button
Text="Rules"
Style="{StaticResource MainButton}"/>
<Border.Shadow>
<Shadow></Shadow>
</Border.Shadow>
</Border>
<controls:ButtonShadow></controls:ButtonShadow>
<Border Stroke="Transparent">
<Button
Text="Settings"
Style="{StaticResource MainButton}"/>
<Border.Shadow>
<Shadow></Shadow>
</Border.Shadow>
</Border>
<Border Stroke="Transparent">
<Button
Text="Credits"
Style="{StaticResource MainButton}"/>
<Border.Shadow>
<Shadow></Shadow>
</Border.Shadow>
</Border>
<controls:ButtonShadow></controls:ButtonShadow>
</VerticalStackLayout>

@ -6,8 +6,7 @@
Title="Credits">
<ScrollView>
<VerticalStackLayout>
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<Grid Style="{StaticResource GridMain}">
<controls:GoBack></controls:GoBack>
<Label Text="Credits"
Style="{StaticResource Title}"/>
@ -31,9 +30,7 @@
Style="{StaticResource SubTitle}"/>
<Image
Source="uca.png"
HeightRequest="300"
Aspect="AspectFit"
/>
Style="{StaticResource Logo}"/>

@ -2,6 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Pages.Gameboard"
xmlns:controls="clr-namespace:Qwirkle.Views"
Title="Gameboard">
<VerticalStackLayout MaximumHeightRequest="1080"
MaximumWidthRequest="1920">

@ -7,27 +7,16 @@
<ScrollView>
<VerticalStackLayout Spacing="25" Padding="5, 5, 5, 10">
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<Grid Style="{StaticResource GridMain}">
<controls:GoBack></controls:GoBack>
<Label FontSize="Header"
Grid.Column="1"
Grid.Row="0"
FontAttributes="Bold"
HorizontalOptions="Center"
Padding="50, 10"
Text="Leaderboard"/>
<Label Text="Leaderboard"
Style="{StaticResource Title}"/>
</Grid>
<Border Stroke="{StaticResource Gray800}"
StrokeThickness="4"
Margin="10, 0">
<Border Style="{StaticResource TabBorder}">
<Border.Shadow>
<Shadow Brush="Black"
Offset="5, 5"
Radius="10"
Opacity="0.6"/>
<Shadow/>
</Border.Shadow>
<Border.StrokeShape>
<RoundRectangle CornerRadius="3"/>
@ -35,57 +24,51 @@
<VerticalStackLayout>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:LeaderboardLine></controls:LeaderboardLine>
</VerticalStackLayout>
</Border>
<controls:TileSquare/>
<controls:TileRhombus/>
<controls:TileCircle/>
<controls:TileStar/>
<controls:TileShuriken/>
<controls:TileClub/>
</VerticalStackLayout>

@ -6,27 +6,18 @@
Title="Scoreboard">
<ScrollView>
<VerticalStackLayout Spacing="25" Padding="5, 5, 5, 10">
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<Grid Style="{StaticResource GridMain}">
<controls:GoBack></controls:GoBack>
<Label FontSize="Header"
Grid.Column="1"
Grid.Row="0"
FontAttributes="Bold"
HorizontalOptions="Center"
Padding="50, 10"
Text="Scoreboard"/>
<Label Text="Scoreboard"
Style="{StaticResource Title}"
/>
</Grid>
<Border Stroke="{StaticResource Gray800}"
StrokeThickness="4"
Margin="10, 0">
<Border Style="{StaticResource TabBorder}">
<Border.Shadow>
<Shadow Brush="Black"
Offset="5, 5"
Radius="10"
Opacity="0.6"/>
<Shadow/>
</Border.Shadow>
<Border.StrokeShape>
<RoundRectangle CornerRadius="3"/>
@ -34,19 +25,19 @@
<VerticalStackLayout>
<controls:ScoreboardLine></controls:ScoreboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:ScoreboardLine></controls:ScoreboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:ScoreboardLine></controls:ScoreboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:ScoreboardLine></controls:ScoreboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
<controls:ScoreboardLine></controls:ScoreboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Rectangle/>
</VerticalStackLayout>
</Border>

@ -2,6 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Pages.SetPlayers"
xmlns:controls="clr-namespace:Qwirkle.Views"
Title="SetPlayers">
<ScrollView>
<VerticalStackLayout>
@ -10,29 +11,13 @@
Text="SetPlayers"
Style="{StaticResource Title}"/>
<Label
Text="Players 1"
Style="{StaticResource ContentStart}"/>
<Entry Text="Entry tag of player1"/>
<Label
Text="Players 2"
Style="{StaticResource ContentStart}"/>
<controls:EntryPlayer></controls:EntryPlayer>
<Entry Text="Entry tag of player2"/>
<controls:EntryPlayer></controls:EntryPlayer>
<Label
Text="Players 3"
Style="{StaticResource ContentStart}"/>
<Entry Text="Entry tag of player3"/>
<Label
Text="Players 4"
Style="{StaticResource ContentStart}"/>
<controls:EntryPlayer></controls:EntryPlayer>
<Entry Text="Entry tag of player4"/>
<controls:EntryPlayer></controls:EntryPlayer>
<Button Text="Confirm"

@ -7,16 +7,10 @@
<ScrollView>
<VerticalStackLayout Spacing="25" Padding="5">
<Grid ColumnDefinitions="*, 4*,*"
Margin="10, 0">
<Grid Style="{StaticResource GridMain}">
<controls:GoBack></controls:GoBack>
<Label FontSize="Header"
Grid.Column="1"
Grid.Row="0"
FontAttributes="Bold"
HorizontalOptions="Center"
Padding="50, 10"
Text="Settings"/>
<Label Text="Settings"
Style="{StaticResource Title}"/>
</Grid>
<VerticalStackLayout>
@ -28,27 +22,16 @@
HorizontalOptions="Center">
<Label
Text="Sound"
VerticalOptions="Start"
HorizontalOptions="Start"
FontAttributes="Bold"
FontSize="20"
Margin="10"/>
Style="{StaticResource ContentSetting}"
/>
<Switch
IsToggled="True"
HorizontalOptions="Center"
ThumbColor="AliceBlue"/>
<Switch/>
</HorizontalStackLayout>
<Slider Value="5"
Grid.Row="0"
Grid.Column="2"
WidthRequest="500"
HorizontalOptions="Center"
VerticalOptions="Center"/>
<Slider Style="{StaticResource SliderSound}"/>
</Grid>
<Rectangle HeightRequest="2" BackgroundColor="Black" />
<Rectangle></Rectangle>
</VerticalStackLayout>
</VerticalStackLayout>

@ -118,6 +118,9 @@
<MauiXaml Update="Views\ButtonShadow.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\EntryPlayer.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Views\GoBack.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>

@ -23,6 +23,12 @@
<Setter Property="Stroke" Value="Transparent" />
</Style>
<Style TargetType="Border" x:Key="TabBorder">
<Setter Property="Stroke" Value="{StaticResource Gray800}" />
<Setter Property="StrokeThickness" Value="4" />
<Setter Property="Margin" Value="10, 0" />
</Style>
<Style TargetType="BoxView">
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
</Style>
@ -75,6 +81,11 @@
<Setter Property="VerticalOptions" Value="End"/>
</Style>
<Style TargetType="Image" x:Key="Logo">
<Setter Property="HeightRequest" Value="300" />
<Setter Property="Aspect" Value="AspectFit"/>
</Style>
<Style TargetType="CheckBox">
<Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
<Setter Property="MinimumHeightRequest" Value="44"/>
@ -236,6 +247,7 @@
<Setter Property="FontAttributes" Value="Bold" />
</Style>
<Style TargetType="Label" x:Key="ContentCenter">
<Setter Property="TextColor" Value="Black" />
<Setter Property="FontSize" Value="20" />
@ -248,6 +260,24 @@
<Setter Property="HorizontalOptions" Value="Start" />
</Style>
<Style TargetType="Label" x:Key="ContentSetting">
<Setter Property="TextColor" Value="Black" />
<Setter Property="FontSize" Value="20" />
<Setter Property="HorizontalOptions" Value="Start" />
<Setter Property="VerticalOptions" Value="Start" />
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="Margin" Value="10" />
</Style>
<Style TargetType="Label" x:Key="ContentTab">
<Setter Property="Grid.Row" Value="0" />
<Setter Property="FontSize" Value="Medium" />
<Setter Property="Padding" Value="5,0" />
<Setter Property="VerticalOptions" Value="Center" />
<Setter Property="FontAttributes" Value="Bold" />
<Setter Property="TextColor" Value="DarkSlateGrey" />
</Style>
<Style TargetType="ListView">
<Setter Property="SeparatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
<Setter Property="RefreshControlColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
@ -363,10 +393,10 @@
</Style>
<Style TargetType="Shadow">
<Setter Property="Radius" Value="15" />
<Setter Property="Opacity" Value="0.5" />
<Setter Property="Brush" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
<Setter Property="Offset" Value="10,10" />
<Setter Property="Radius" Value="10" />
<Setter Property="Opacity" Value="0.6" />
<Setter Property="Brush" Value="Black" />
<Setter Property="Offset" Value="5, 5" />
</Style>
<Style TargetType="Slider">
@ -389,11 +419,24 @@
</Setter>
</Style>
<Style TargetType="Slider" x:Key="SliderSound">
<Setter Property="Value" Value="5" />
<Setter Property="Grid.Row" Value="0" />
<Setter Property="Grid.Column" Value="2" />
<Setter Property="WidthRequest" Value="500" />
<Setter Property="HorizontalOptions" Value="Center" />
<Setter Property="VerticalOptions" Value="Center" />
</Style>
<Style TargetType="SwipeItem">
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
</Style>
<Style TargetType="Switch">
<Setter Property="IsToggled" Value="True" />
<Setter Property="HorizontalOptions" Value="Center" />
<Setter Property="ThumbColor" Value="AliceBlue" />
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup x:Name="CommonStates">
@ -473,4 +516,20 @@
<Style TargetType="ScrollView" >
<Setter Property="BackgroundColor" Value="#efca85"/>
</Style>
<Style TargetType="Rectangle" >
<Setter Property="HeightRequest" Value="2"/>
<Setter Property="BackgroundColor" Value="Black"/>
</Style>
<Style TargetType="Rectangle" x:Key="RectangleTab">
<Setter Property="WidthRequest" Value="2"/>
<Setter Property="BackgroundColor" Value="Black"/>
<Setter Property="Grid.RowSpan" Value="20"/>
</Style>
<Style TargetType="Grid" x:Key="GridMain">
<Setter Property="ColumnDefinitions" Value="*, 4*, *"/>
<Setter Property="Margin" Value="10, 0"/>
</Style>
</ResourceDictionary>

@ -4,7 +4,7 @@
x:Class="Qwirkle.Views.ButtonShadow">
<Border Stroke="Transparent">
<Button
Text="Settings"
Text="Example"
Style="{StaticResource MainButton}"/>
<Border.Shadow>
<Shadow></Shadow>

@ -0,0 +1,12 @@
<?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="Qwirkle.Views.EntryPlayer">
<VerticalStackLayout Padding="10">
<Label
Text="Players X"
Style="{StaticResource ContentStart}"/>
<Entry Text="Entry tag of player X"/>
</VerticalStackLayout>
</ContentView>

@ -0,0 +1,9 @@
namespace Qwirkle.Views;
public partial class EntryPlayer : ContentView
{
public EntryPlayer()
{
InitializeComponent();
}
}

@ -7,59 +7,33 @@
RowDefinitions="50">
<Label
Grid.Row="0"
Grid.Column="0"
FontSize="Medium"
FontAttributes="Bold"
Padding="5, 0"
Text="Player Tag"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
<Rectangle WidthRequest="2"
Grid.Column="1"
Grid.RowSpan="20"
BackgroundColor="Black"/>
Style="{StaticResource ContentTab}"
/>
<Rectangle
Grid.Column="1"/>
<Label
Grid.Row="0"
Grid.Column="2"
FontSize="Medium"
FontAttributes="Bold"
Padding="5, 0"
Text="Date"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
Style="{StaticResource ContentTab}"/>
<Rectangle WidthRequest="2"
Grid.Column="3"
Grid.RowSpan="20"
BackgroundColor="Black"/>
<Rectangle
Grid.Column="3"/>
<Label
Grid.Row="0"
Grid.Column="4"
FontSize="Medium"
FontAttributes="Bold"
Padding="5, 0"
Text="Points"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
Style="{StaticResource ContentTab}"/>
<Rectangle WidthRequest="2"
Grid.Column="5"
Grid.RowSpan="20"
BackgroundColor="Black"/>
<Rectangle
Grid.Column="5"/>
<Label
Grid.Row="0"
Grid.Column="6"
FontSize="Medium"
FontAttributes="Bold"
Padding="5, 0"
Style="{StaticResource ContentTab}"
Text="Victories"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
/>
</Grid>
</ContentView>
Loading…
Cancel
Save