diff --git a/Uno.Gallery/Uno.Gallery.Shared/Assets/DotnetBot.png b/Uno.Gallery/Uno.Gallery.Shared/Assets/DotnetBot.png deleted file mode 100644 index fdd929744..000000000 Binary files a/Uno.Gallery/Uno.Gallery.Shared/Assets/DotnetBot.png and /dev/null differ diff --git a/Uno.Gallery/Uno.Gallery.Shared/Converters/SecretConverter.cs b/Uno.Gallery/Uno.Gallery.Shared/Converters/SecretConverter.cs deleted file mode 100644 index 7ffc2722d..000000000 --- a/Uno.Gallery/Uno.Gallery.Shared/Converters/SecretConverter.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.RegularExpressions; -using Windows.UI.Xaml; -using Windows.UI.Xaml.Data; - -namespace Uno.Gallery.Converters -{ - public class SecretConverter : IValueConverter - { - public object Convert(object value, Type targetType, object parameter, string language) => (value as bool?) == true - ? GetAnswer() - : default; - - private string GetAnswer() - { - var keys = Application.Current.Resources.MergedDictionaries - .SelectMany(x => x.Keys) - .OfType() - .ToArray(); - var a = keys - .GroupBy(x => Regex.Replace(x, "([A-Z][a-z]+)([A-Z][a-z]+){2}Brush", "$1")) - .OrderBy(x => x.Count()) - .Select(x => x.Key) - .LastOrDefault(); - var b = keys - .Where(x => Regex.Replace(x, "[a-z]", string.Empty) == "GVIRBSACS") - .Select(x => string.Concat(new[] { 1, 24, 20, 21, 32 }.Select(y => x[y]))) - .FirstOrDefault(); - var answer = Regex.Replace(string.Join(" ", a, b), @"\b[a-z]", x => x.Value.ToUpperInvariant()); - - return answer; - } - - public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotSupportedException("Only one-way conversion is supported."); - } -} diff --git a/Uno.Gallery/Uno.Gallery.Shared/Uno.Gallery.Shared.projitems b/Uno.Gallery/Uno.Gallery.Shared/Uno.Gallery.Shared.projitems index 8c3364e46..c9e3a2401 100644 --- a/Uno.Gallery/Uno.Gallery.Shared/Uno.Gallery.Shared.projitems +++ b/Uno.Gallery/Uno.Gallery.Shared/Uno.Gallery.Shared.projitems @@ -35,7 +35,6 @@ - @@ -125,7 +124,6 @@ - diff --git a/Uno.Gallery/Uno.Gallery.UWP/Views/Converters.xaml b/Uno.Gallery/Uno.Gallery.UWP/Views/Converters.xaml index 2aaea7345..d72d3b888 100644 --- a/Uno.Gallery/Uno.Gallery.UWP/Views/Converters.xaml +++ b/Uno.Gallery/Uno.Gallery.UWP/Views/Converters.xaml @@ -33,6 +33,4 @@ Provider="HashCode" /> - - diff --git a/Uno.Gallery/Uno.Gallery.UWP/Views/SamplePages/ToggleSwitchSamplePage.xaml b/Uno.Gallery/Uno.Gallery.UWP/Views/SamplePages/ToggleSwitchSamplePage.xaml index 083316597..98a124b7a 100644 --- a/Uno.Gallery/Uno.Gallery.UWP/Views/SamplePages/ToggleSwitchSamplePage.xaml +++ b/Uno.Gallery/Uno.Gallery.UWP/Views/SamplePages/ToggleSwitchSamplePage.xaml @@ -15,57 +15,17 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + +