diff --git a/AideDeJeu/AideDeJeu/Tools/MarkdownThemes.cs b/AideDeJeu/AideDeJeu/Tools/MarkdownThemes.cs new file mode 100644 index 00000000..4515b138 --- /dev/null +++ b/AideDeJeu/AideDeJeu/Tools/MarkdownThemes.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Xamarin.Forms; + +namespace AideDeJeu.Tools +{ + public class MonsterMarkdownTheme : Xam.Forms.Markdown.MarkdownTheme + { + public MonsterMarkdownTheme() + { + //this.Paragraph.FontFamily = "LinLibertine_aS.ttf#Linux Libertine Capitals"; + this.BackgroundColor = DefaultBackgroundColor; + this.Paragraph.ForegroundColor = DefaultTextColor; + this.Heading1.ForegroundColor = DefaultTextColor; + this.Heading1.BorderColor = DefaultSeparatorColor; + this.Heading2.ForegroundColor = DefaultTextColor; + this.Heading2.BorderColor = DefaultSeparatorColor; + this.Heading3.ForegroundColor = DefaultTextColor; + this.Heading4.ForegroundColor = DefaultTextColor; + this.Heading5.ForegroundColor = DefaultTextColor; + this.Heading6.ForegroundColor = DefaultTextColor; + this.Link.ForegroundColor = DefaultAccentColor; + this.Code.ForegroundColor = DefaultTextColor; + this.Code.BackgroundColor = DefaultCodeBackground; + this.Quote.ForegroundColor = DefaultQuoteTextColor; + this.Quote.BorderColor = DefaultQuoteBorderColor; + this.Separator.BorderColor = DefaultSeparatorColor; + } + + public static readonly Color DefaultBackgroundColor = Color.FromHex("#F7F2E5"); + + public static readonly Color DefaultAccentColor = Color.FromHex("#0366d6"); + + public static readonly Color DefaultTextColor = Color.FromHex("#24292e"); + + public static readonly Color DefaultCodeBackground = Color.FromHex("#f6f8fa"); + + public static readonly Color DefaultSeparatorColor = Color.FromHex("#eaecef"); + + public static readonly Color DefaultQuoteTextColor = Color.FromHex("#6a737d"); + + public static readonly Color DefaultQuoteBorderColor = Color.FromHex("#dfe2e5"); + } +} diff --git a/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml b/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml index a35b49f3..23028e7b 100644 --- a/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml +++ b/AideDeJeu/AideDeJeu/Views/MonsterDetailPage.xaml @@ -8,6 +8,7 @@ Title="{Binding Title}"> + @@ -80,15 +81,15 @@