|
|
@ -1,13 +1,6 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
using Xamarin.Forms;
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
|
|
using TheGameExtreme.IO;
|
|
|
|
using TheGameExtreme.IO;
|
|
|
|
using Rg.Plugins.Popup.Pages;
|
|
|
|
|
|
|
|
using Rg.Plugins.Popup.Extensions;
|
|
|
|
|
|
|
|
using TheGameExtreme.Resx;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace TheGameExtreme.view
|
|
|
|
namespace TheGameExtreme.view
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -18,7 +11,6 @@ namespace TheGameExtreme.view
|
|
|
|
{
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
InitializeComponent();
|
|
|
|
NavigationPage.SetHasNavigationBar(this, false);
|
|
|
|
NavigationPage.SetHasNavigationBar(this, false);
|
|
|
|
SetTheme();
|
|
|
|
|
|
|
|
LoadParameterOptionOnHomepage();
|
|
|
|
LoadParameterOptionOnHomepage();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -82,30 +74,16 @@ namespace TheGameExtreme.view
|
|
|
|
{
|
|
|
|
{
|
|
|
|
BackgroundColor = Color.Transparent,
|
|
|
|
BackgroundColor = Color.Transparent,
|
|
|
|
BorderColor = (Color)Application.Current.Resources["SkyBlueColor"]
|
|
|
|
BorderColor = (Color)Application.Current.Resources["SkyBlueColor"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
imageButton.Source = "SoleilThemes.png";
|
|
|
|
imageButton.Source = "SoleilThemes.png";
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ButtonGrid.Children.Add(imageButton, 1, 1);
|
|
|
|
ButtonGrid.Children.Add(imageButton, 1, 1);
|
|
|
|
imageButton.Clicked += Theme_Clicked;
|
|
|
|
imageButton.Clicked += Theme_Clicked;
|
|
|
|
|
|
|
|
imageButton.HorizontalOptions = LayoutOptions.Center;
|
|
|
|
|
|
|
|
imageButton.VerticalOptions = LayoutOptions.End;
|
|
|
|
IOOptions.SaveOptionParameter(b);
|
|
|
|
IOOptions.SaveOptionParameter(b);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void SetTheme()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (homepageT.BackgroundColor == Color.Black)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
imageButton.Source = "SoleilThemes.png";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(homepageT.BackgroundColor == Color.White)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
imageButton.Source = "LuneSombreTheme";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|