master
Baptiste ARNAUD 6 years ago
parent 74ae41a6c6
commit 103b4801ed

@ -5713,103 +5713,106 @@ namespace TheGameExtreme.Droid
public const int Apple = 2131165274; public const int Apple = 2131165274;
// aapt resource value: 0x7F07005B // aapt resource value: 0x7F07005B
public const int avd_hide_password = 2131165275; public const int ArrowSettingsBack = 2131165275;
// aapt resource value: 0x7F07005C // aapt resource value: 0x7F07005C
public const int avd_show_password = 2131165276; public const int avd_hide_password = 2131165276;
// aapt resource value: 0x7F07005D // aapt resource value: 0x7F07005D
public const int design_bottom_navigation_item_background = 2131165277; public const int avd_show_password = 2131165277;
// aapt resource value: 0x7F07005E // aapt resource value: 0x7F07005E
public const int design_fab_background = 2131165278; public const int design_bottom_navigation_item_background = 2131165278;
// aapt resource value: 0x7F07005F // aapt resource value: 0x7F07005F
public const int design_ic_visibility = 2131165279; public const int design_fab_background = 2131165279;
// aapt resource value: 0x7F070060 // aapt resource value: 0x7F070060
public const int design_ic_visibility_off = 2131165280; public const int design_ic_visibility = 2131165280;
// aapt resource value: 0x7F070061 // aapt resource value: 0x7F070061
public const int design_password_eye = 2131165281; public const int design_ic_visibility_off = 2131165281;
// aapt resource value: 0x7F070062 // aapt resource value: 0x7F070062
public const int design_snackbar_background = 2131165282; public const int design_password_eye = 2131165282;
// aapt resource value: 0x7F070063 // aapt resource value: 0x7F070063
public const int Engrenage = 2131165283; public const int design_snackbar_background = 2131165283;
// aapt resource value: 0x7F070064 // aapt resource value: 0x7F070064
public const int EngrenageV1 = 2131165284; public const int Engrenage = 2131165284;
// aapt resource value: 0x7F070065 // aapt resource value: 0x7F070065
public const int ic_mtrl_chip_checked_black = 2131165285; public const int EngrenageV1 = 2131165285;
// aapt resource value: 0x7F070066 // aapt resource value: 0x7F070066
public const int ic_mtrl_chip_checked_circle = 2131165286; public const int ic_mtrl_chip_checked_black = 2131165286;
// aapt resource value: 0x7F070067 // aapt resource value: 0x7F070067
public const int ic_mtrl_chip_close_circle = 2131165287; public const int ic_mtrl_chip_checked_circle = 2131165287;
// aapt resource value: 0x7F070068 // aapt resource value: 0x7F070068
public const int imagesRules = 2131165288; public const int ic_mtrl_chip_close_circle = 2131165288;
// aapt resource value: 0x7F070069 // aapt resource value: 0x7F070069
public const int mtrl_snackbar_background = 2131165289; public const int imagesRules = 2131165289;
// aapt resource value: 0x7F07006A // aapt resource value: 0x7F07006A
public const int mtrl_tabs_default_indicator = 2131165290; public const int mtrl_snackbar_background = 2131165290;
// aapt resource value: 0x7F07006B // aapt resource value: 0x7F07006B
public const int navigation_empty_icon = 2131165291; public const int mtrl_tabs_default_indicator = 2131165291;
// aapt resource value: 0x7F07006C // aapt resource value: 0x7F07006C
public const int notification_action_background = 2131165292; public const int navigation_empty_icon = 2131165292;
// aapt resource value: 0x7F07006D // aapt resource value: 0x7F07006D
public const int notification_bg = 2131165293; public const int notification_action_background = 2131165293;
// aapt resource value: 0x7F07006E // aapt resource value: 0x7F07006E
public const int notification_bg_low = 2131165294; public const int notification_bg = 2131165294;
// aapt resource value: 0x7F07006F // aapt resource value: 0x7F07006F
public const int notification_bg_low_normal = 2131165295; public const int notification_bg_low = 2131165295;
// aapt resource value: 0x7F070070 // aapt resource value: 0x7F070070
public const int notification_bg_low_pressed = 2131165296; public const int notification_bg_low_normal = 2131165296;
// aapt resource value: 0x7F070071 // aapt resource value: 0x7F070071
public const int notification_bg_normal = 2131165297; public const int notification_bg_low_pressed = 2131165297;
// aapt resource value: 0x7F070072 // aapt resource value: 0x7F070072
public const int notification_bg_normal_pressed = 2131165298; public const int notification_bg_normal = 2131165298;
// aapt resource value: 0x7F070073 // aapt resource value: 0x7F070073
public const int notification_icon_background = 2131165299; public const int notification_bg_normal_pressed = 2131165299;
// aapt resource value: 0x7F070074 // aapt resource value: 0x7F070074
public const int notification_template_icon_bg = 2131165300; public const int notification_icon_background = 2131165300;
// aapt resource value: 0x7F070075 // aapt resource value: 0x7F070075
public const int notification_template_icon_low_bg = 2131165301; public const int notification_template_icon_bg = 2131165301;
// aapt resource value: 0x7F070076 // aapt resource value: 0x7F070076
public const int notification_tile_bg = 2131165302; public const int notification_template_icon_low_bg = 2131165302;
// aapt resource value: 0x7F070077 // aapt resource value: 0x7F070077
public const int notify_panel_notification_icon_bg = 2131165303; public const int notification_tile_bg = 2131165303;
// aapt resource value: 0x7F070078 // aapt resource value: 0x7F070078
public const int rules = 2131165304; public const int notify_panel_notification_icon_bg = 2131165304;
// aapt resource value: 0x7F070079 // aapt resource value: 0x7F070079
public const int rulesImg = 2131165305; public const int rules = 2131165305;
// aapt resource value: 0x7F07007A // aapt resource value: 0x7F07007A
public const int tooltip_frame_dark = 2131165306; public const int rulesImg = 2131165306;
// aapt resource value: 0x7F07007B // aapt resource value: 0x7F07007B
public const int tooltip_frame_light = 2131165307; public const int tooltip_frame_dark = 2131165307;
// aapt resource value: 0x7F07007C
public const int tooltip_frame_light = 2131165308;
static Drawable() static Drawable()
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

@ -119,5 +119,8 @@
<ItemGroup> <ItemGroup>
<AndroidResource Include="Resources\drawable\imagesRules.png" /> <AndroidResource Include="Resources\drawable\imagesRules.png" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\ArrowSettingsBack.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project> </Project>

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

@ -154,5 +154,6 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Apple.ico" /> <Content Include="Apple.ico" />
<BundleResource Include="Resources\Arrow-left.png" />
</ItemGroup> </ItemGroup>
</Project> </Project>

@ -1,25 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:d="http://xamarin.com/schemas/2014/forms/design" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="TheGameExtreme.App"> <Application xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:d="http://xamarin.com/schemas/2014/forms/design" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="TheGameExtreme.App">
<Application.Resources> <Application.Resources>
<ResourceDictionary> <ResourceDictionary x:Key="DictionnaireR">
<Style x:Key="MyBackGroundColorStyle" TargetType="ContentPage"> <Style x:Key="ColorApplication" TargetType="ContentPage">
<Setter Property="BackgroundColor" Value="Black"></Setter> <Setter Property="BackgroundColor" Value="Black"></Setter>
</Style> </Style>
<Style x:Key="ColorLabel" TargetType="Label">
<Style x:Key="MyBackGroundColorStyle2" TargetType="ContentPage">
<Setter Property="BackgroundColor" Value="White"></Setter>
</Style>
<Style x:Key="ColorLabelDark" TargetType="Label">
<Setter Property="TextColor" Value="White"></Setter>
</Style>
<Style x:Key="ColorLabelWhite" TargetType="Label">
<Setter Property="TextColor" Value="Black"></Setter> <Setter Property="TextColor" Value="Black"></Setter>
</Style> </Style>
<Style x:Key="ColorLabelRed" TargetType="Label">
<Setter Property="TextColor" Value="Red"></Setter>
</Style>
</ResourceDictionary> </ResourceDictionary>
</Application.Resources> </Application.Resources>

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage Title="THEGAME" <ContentPage Title="THEGAME" Style="{DynamicResource ColorApplication}"
Style="{StaticResource Key=MyBackGroundColorStyle}"
xmlns="http://xamarin.com/schemas/2014/forms" xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TheGameExtreme.view.HomePage"> x:Class="TheGameExtreme.view.HomePage">
@ -23,7 +22,8 @@
Grid.Row="0" Grid.Column="1" Grid.Row="0" Grid.Column="1"
HorizontalTextAlignment="Center" HorizontalTextAlignment="Center"
FontSize="35" FontSize="35"
VerticalTextAlignment="Center"/> VerticalTextAlignment="Center"
FontFamily=""/>
<ImageButton Source="EngrenageV1.jpeg" <ImageButton Source="EngrenageV1.jpeg"
Grid.Row="0" Grid.Column="2" Grid.Row="0" Grid.Column="2"

@ -32,10 +32,7 @@ namespace TheGameExtreme.view
{ {
await DisplayAlert("Règles", AppRessource.StrRules, "let's go"); await DisplayAlert("Règles", AppRessource.StrRules, "let's go");
} }
private void backgroundcolor()
{
}
} }
} }

@ -1,15 +1,58 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ContentPage BackgroundColor="#4d4c4a" <ContentPage Style="{StaticResource MyBackGroundColorStyle}"
xmlns="http://xamarin.com/schemas/2014/forms" xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TheGameExtreme.view.MultiPlayerMode"> x:Class="TheGameExtreme.view.MultiPlayerMode">
<StackLayout> <Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Text="Connexion Bluetooth" Margin="60"/> <ImageButton Source="ArrowSettingsBack.png"
<Button Text="Connexion Wifi" /> Margin="15,15,0,0"
Clicked="BackMulti_Clicked"
BackgroundColor="Transparent"
VerticalOptions="StartAndExpand"
HorizontalOptions="Start"
HeightRequest="50"
WidthRequest="58"
Grid.Column="0" Grid.Row="0"/>
</StackLayout> <Label Text="Multijoueur" Style="{StaticResource ColorLabelDark}"
FontSize="28"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"
Grid.Column="1" Grid.Row="0"/>
<Button Text="Connexion Bluetooth"
Grid.Row="1"
Grid.Column="1"
WidthRequest="230"
HeightRequest="57"
VerticalOptions="Center"
HorizontalOptions="Center"
CornerRadius="10"
BackgroundColor="SkyBlue"/>
<Button Text="Connexion Wifi"
Grid.Row="2"
Grid.Column="1"
WidthRequest="230"
HeightRequest="57"
VerticalOptions="Center"
HorizontalOptions="Center"
CornerRadius="10"
BackgroundColor="SkyBlue"/>
</Grid>
</ContentPage> </ContentPage>

@ -10,6 +10,12 @@ namespace TheGameExtreme.view
public MultiPlayerMode() public MultiPlayerMode()
{ {
InitializeComponent(); InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
}
private async void BackMulti_Clicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new HomePage());
} }
} }
} }

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ContentPage Style="{StaticResource Key=MyBackGroundColorStyle}" x:Name="pageContentSetting" <ContentPage Style="{DynamicResource ColorApplication}" x:Name="pageContentSetting"
xmlns="http://xamarin.com/schemas/2014/forms" xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TheGameExtreme.view.Settings"> x:Class="TheGameExtreme.view.Settings"
Resources="">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
@ -19,53 +20,75 @@
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Label Style="{StaticResource ColorLabelDark}" <ImageButton Source="ArrowSettingsBack.png"
HorizontalTextAlignment="Start" Grid.Row="0" Grid.Column="0"
Text="langage" Grid.Column="0" VerticalOptions="Start"
HorizontalOptions="StartAndExpand"
HeightRequest="40"
WidthRequest="50"
Clicked="SettingToHomePage"
BackgroundColor="Transparent"
Margin="10,10,0,0"/>
<Label HorizontalTextAlignment="Start"
Text ="Langage" Grid.Column="0"
Grid.Row="0" FontSize="25" Grid.Row="0" FontSize="25"
x:Name="lbColor0"/> x:Name="lbColor0"
Margin="40,58,0,0"/>
<Label Text="English" <Label Text="English"
Grid.Column="1" Grid.Row="0" Grid.Column="1" Grid.Row="0"
FontSize="25" FontSize="25"
x:Name="lbColor1" x:Name="lbColor1"
Style="{StaticResource ColorLabelDark}"/>
Margin="80,58,0,0"/>
<CheckBox IsChecked="False" <CheckBox IsChecked="False"
Grid.Column="1" Grid.Row="0" Grid.Column="1" Grid.Row="0"
x:Name="CBBr" x:Name="CBBr"
CheckedChanged="CBBr_CheckedChanged"/> CheckedChanged="CBBr_CheckedChanged"
Color="SkyBlue"
Margin="40,63,0,0"/>
<Label Text="Français" <Label Text="Français"
Grid.Column="2" Grid.Row="0" Grid.Column="2" Grid.Row="0"
FontSize="25" FontSize="25"
x:Name="lbColor2" x:Name="lbColor2"
Style="{StaticResource ColorLabelDark}"/>
Margin="80,58,0,0"/>
<CheckBox IsChecked="True" <CheckBox IsChecked="True"
Grid.Column="2" Grid.Row="0" Grid.Column="2" Grid.Row="0"
x:Name="CBFr" x:Name="CBFr"
CheckedChanged="CBFr_CheckedChanged"/> CheckedChanged="CBFr_CheckedChanged"
Color="SkyBlue"
Margin="40,63,0,0"
/>
<Label HorizontalTextAlignment="Start" <Label HorizontalTextAlignment="Start"
Text="Mode Extreme" Grid.Column="0" Text="Mode Extreme" Grid.Column="0"
Grid.Row="2" FontSize="25" Grid.Row="2" FontSize="25"
x:Name="lbColor3" x:Name="lbColor3"
Style="{StaticResource ColorLabelDark}"/>
Margin="40,25,0,0"/>
<Switch IsToggled="True" <Switch IsToggled="True"
Grid.Column="1" Grid.Row="2" /> Grid.Column="1" Grid.Row="2"
OnColor="SkyBlue"
ThumbColor="WhiteSmoke"/>
<Label Text="Thème sombre" <Label Text="Thème sombre"
Grid.Column="0" Grid.Row="3" Grid.Column="0" Grid.Row="3"
FontSize="25" FontSize="25"
x:Name="lbColor4" x:Name="lbColor4"
Style="{StaticResource ColorLabelDark}"/>
Margin="40,25,0,0"/>
<Switch IsToggled="True" <Switch IsToggled="True"
Grid.Column="1" Grid.Row="3" Grid.Column="1" Grid.Row="3"
Toggled="Switch_Toggled_Theme" x:Name="swTheme"/> Toggled="Switch_Toggled_Theme" x:Name="swTheme"
OnColor="SkyBlue" ThumbColor="WhiteSmoke"/>
</Grid> </Grid>
</ContentPage> </ContentPage>

@ -13,6 +13,7 @@ namespace TheGameExtreme.view
{ {
InitializeComponent(); InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false); NavigationPage.SetHasNavigationBar(this, false);
} }
private void CBBr_CheckedChanged(object sender, CheckedChangedEventArgs e) private void CBBr_CheckedChanged(object sender, CheckedChangedEventArgs e)
@ -38,12 +39,16 @@ namespace TheGameExtreme.view
if (swTheme.IsToggled == true) if (swTheme.IsToggled == true)
{ {
/*(Application.Current.Resources["ColorLabelText"] as Style).
pageContentSetting.Style = Application.Current.Resources["MyBackGroundColorStyle"] as Style; pageContentSetting.Style = Application.Current.Resources["MyBackGroundColorStyle"] as Style;
lbColor0.Style = Application.Current.Resources["ColorLabelDark"] as Style; lbColor0.Style = Application.Current.Resources["ColorLabelDark"] as Style;
lbColor1.Style = Application.Current.Resources["ColorLabelDark"] as Style; lbColor1.Style = Application.Current.Resources["ColorLabelDark"] as Style;
lbColor2.Style = Application.Current.Resources["ColorLabelDark"] as Style; lbColor2.Style = Application.Current.Resources["ColorLabelDark"] as Style;
lbColor3.Style = Application.Current.Resources["ColorLabelDark"] as Style; lbColor3.Style = Application.Current.Resources["ColorLabelDark"] as Style;
lbColor4.Style = Application.Current.Resources["ColorLabelDark"] as Style; lbColor4.Style = Application.Current.Resources["ColorLabelDark"] as Style;*/
} }
else else
{ {
@ -53,7 +58,7 @@ namespace TheGameExtreme.view
private void WhiteTheme()//Change le background color de settings en Blanc et swap la couleur des labels en noir private void WhiteTheme()//Change le background color de settings en Blanc et swap la couleur des labels en noir
{ {
HomePage page = new HomePage();
{ {
pageContentSetting.Style = Application.Current.Resources["MyBackGroundColorStyle2"] as Style; pageContentSetting.Style = Application.Current.Resources["MyBackGroundColorStyle2"] as Style;
lbColor0.Style = Application.Current.Resources["ColorLabelWhite"] as Style; lbColor0.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
@ -61,9 +66,12 @@ namespace TheGameExtreme.view
lbColor2.Style = Application.Current.Resources["ColorLabelWhite"] as Style; lbColor2.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor3.Style = Application.Current.Resources["ColorLabelWhite"] as Style; lbColor3.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor4.Style = Application.Current.Resources["ColorLabelWhite"] as Style; lbColor4.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
//ChangeBackGroundColorHomePage();
} }
} }
private async void SettingToHomePage(object sender, EventArgs e)
{
await Navigation.PushAsync(new HomePage());
}
} }
} }

Loading…
Cancel
Save