diff --git a/Sources/MarkdownView.Portable/MarkdownStyle.cs b/Sources/MarkdownView.Portable/MarkdownStyle.cs index 4c60907..b933c12 100644 --- a/Sources/MarkdownView.Portable/MarkdownStyle.cs +++ b/Sources/MarkdownView.Portable/MarkdownStyle.cs @@ -17,5 +17,7 @@ public class MarkdownStyle public float BorderSize { get; set; } public string FontFamily { get; set; } + + public bool AsBoxView { get; set; } = true; } } diff --git a/Sources/MarkdownView.Portable/MarkdownView.cs b/Sources/MarkdownView.Portable/MarkdownView.cs index 8be9a3c..b811d3e 100644 --- a/Sources/MarkdownView.Portable/MarkdownView.cs +++ b/Sources/MarkdownView.Portable/MarkdownView.cs @@ -226,14 +226,28 @@ private void Render(ListBlock parent, int index, ListItemBlock block) } else { - bullet = new BoxView + if (this.Theme.Paragraph.AsBoxView) { - WidthRequest = 4, - HeightRequest = 4, - Margin = new Thickness(0, 6, 0, 0), - BackgroundColor = this.Theme.Paragraph.ForegroundColor, - VerticalOptions = LayoutOptions.Start, - HorizontalOptions = LayoutOptions.Center, + bullet = new BoxView + { + WidthRequest = 4, + HeightRequest = 4, + Margin = new Thickness(0, 6, 0, 0), + BackgroundColor = this.Theme.Paragraph.ForegroundColor, + VerticalOptions = LayoutOptions.Start, + HorizontalOptions = LayoutOptions.Center, + }; + } + else + { + bullet = new Label + { + Text = $"●", + FontSize = this.Theme.Paragraph.FontSize, + TextColor = this.Theme.Paragraph.ForegroundColor, + VerticalOptions = LayoutOptions.Start, + HorizontalOptions = LayoutOptions.End, + }; }; }