master
Baptiste ARNAUD 6 years ago
parent e6b5fe8ae9
commit 74ae41a6c6

@ -38,9 +38,11 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>AppRessources-br.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " Update="view\AppResources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>AppResources.Designer.cs</LastGenOutput>
<EmbeddedResource Update="DictionnaireBGCBLACK.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="DictionnaireBGCWhite.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
@ -54,8 +56,5 @@
<AutoGen>True</AutoGen>
<DependentUpon>AppRessources-br.resx</DependentUpon>
</Compile>
<Compile Condition=" '$(EnableDefaultCompileItems)' == 'true' " Update="view\AppResources.Designer.cs">
<DependentUpon>AppResources.resx</DependentUpon>
</Compile>
</ItemGroup>
</Project>

@ -17,6 +17,10 @@
<Style x:Key="ColorLabelWhite" TargetType="Label">
<Setter Property="TextColor" Value="Black"></Setter>
</Style>
<Style x:Key="ColorLabelRed" TargetType="Label">
<Setter Property="TextColor" Value="Red"></Setter>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>

@ -1,56 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TheGameExtreme.view {
using System;
using System.Reflection;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class AppResources {
private static System.Resources.ResourceManager resourceMan;
private static System.Globalization.CultureInfo resourceCulture;
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal AppResources() {
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public static System.Resources.ResourceManager ResourceManager {
get {
if (object.Equals(null, resourceMan)) {
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("TheGameExtreme.view.AppResources", typeof(AppResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public static System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
public static string coucou {
get {
return ResourceManager.GetString("coucou", resourceCulture);
}
}
}
}

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="coucou" xml:space="preserve">
<value>coucou</value>
<comment>Valeur de test</comment>
</data>
</root>

@ -25,8 +25,6 @@
FontSize="35"
VerticalTextAlignment="Center"/>
<ImageButton Source="EngrenageV1.jpeg"
Grid.Row="0" Grid.Column="2"
VerticalOptions="CenterAndExpand"
@ -34,8 +32,7 @@
HeightRequest="60"
WidthRequest="68"
Clicked="OpenSetting"
BackgroundColor="Transparent"
/>
BackgroundColor="Transparent"/>
<Button Text="Solo" FontSize="18" Grid.Row="1" Grid.Column="1"
HorizontalOptions="Center"

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

@ -12,6 +12,7 @@ namespace TheGameExtreme.view
public Settings()
{
InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
}
private void CBBr_CheckedChanged(object sender, CheckedChangedEventArgs e)
@ -30,28 +31,11 @@ namespace TheGameExtreme.view
{
CBBr.IsChecked = !CBBr.IsChecked;
}
}
private void WhiteTheme()
{
pageContentSetting.Style = Application.Current.Resources["MyBackGroundColorStyle2"] as Style;
lbColor0.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor1.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor2.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor3.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor4.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
//ChangeBackGroundColorHomePage();
}
private void ChangeBackGroundColorHomePage()
private void Switch_Toggled_Theme(object sender, ToggledEventArgs e)//Change le background color de settings en noir et swap la couleur des labels en blanc
{
}
private void Switch_Toggled_Theme(object sender, ToggledEventArgs e)
{
if (swTheme.IsToggled == true)
{
pageContentSetting.Style = Application.Current.Resources["MyBackGroundColorStyle"] as Style;
@ -66,5 +50,20 @@ namespace TheGameExtreme.view
WhiteTheme();
}
}
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;
lbColor0.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor1.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor2.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor3.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
lbColor4.Style = Application.Current.Resources["ColorLabelWhite"] as Style;
//ChangeBackGroundColorHomePage();
}
}
}
}

Loading…
Cancel
Save