From 35d2038b680d7b4d677c5171a1bdffcd7b8d4309 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 14 Nov 2016 12:30:32 +0100 Subject: [PATCH] WIP signing --- .../Model/Settings/SignatureSettings.cs | 35 +++++++++++ BookAStar/BookAStar/Views/MDSigningView.xaml | 19 ++++++ .../BookAStar/Views/MDSigningView.xaml.cs | 63 +++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 BookAStar/BookAStar/Model/Settings/SignatureSettings.cs create mode 100644 BookAStar/BookAStar/Views/MDSigningView.xaml create mode 100644 BookAStar/BookAStar/Views/MDSigningView.xaml.cs diff --git a/BookAStar/BookAStar/Model/Settings/SignatureSettings.cs b/BookAStar/BookAStar/Model/Settings/SignatureSettings.cs new file mode 100644 index 00000000..d355339d --- /dev/null +++ b/BookAStar/BookAStar/Model/Settings/SignatureSettings.cs @@ -0,0 +1,35 @@ +using System.Collections.Generic; +using System.Linq; +using Xamarin.Forms; + +namespace BookAStar.Model.Settings +{ + class SignatureSettings + { + public static readonly Dictionary ColorPairs = new Dictionary + { + { "", Color.Accent }, + { "Aqua", Color.Aqua }, + { "Black", Color.Black }, + { "Blue", Color.Blue }, + { "Fuchsia", Color.Fuchsia }, + { "Gray", Color.Gray }, + { "Green", Color.Green }, + { "Lime", Color.Lime }, + { "Maroon", Color.Maroon }, + { "Navy", Color.Navy }, + { "Olive", Color.Olive }, + { "Pink", Color.Pink }, + { "Purple", Color.Purple }, + { "Red", Color.Red }, + { "Silver", Color.Silver }, + { "Teal", Color.Teal }, + { "White", Color.White }, + { "Yellow", Color.Yellow }, + }; + + public static List Colors => ColorPairs.Values.ToList(); + + public static List ColorNames => ColorPairs.Keys.ToList(); + } +} diff --git a/BookAStar/BookAStar/Views/MDSigningView.xaml b/BookAStar/BookAStar/Views/MDSigningView.xaml new file mode 100644 index 00000000..4c5e34a1 --- /dev/null +++ b/BookAStar/BookAStar/Views/MDSigningView.xaml @@ -0,0 +1,19 @@ + + + + + +