Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/MarkdownView.Portable/MarkdownStyle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ public class MarkdownStyle
public float BorderSize { get; set; }

public string FontFamily { get; set; }

public bool AsBoxView { get; set; } = true;
}
}
28 changes: 21 additions & 7 deletions Sources/MarkdownView.Portable/MarkdownView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
};
}

Expand Down