Skip to content

Commit

Permalink
Merge pull request #2 from alexjacostal/master
Browse files Browse the repository at this point in the history
Support for Quote BackgroundColor
  • Loading branch information
NedLanon committed Jun 10, 2018
2 parents dd017dc + 03b8b84 commit feea906
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/MarkdownView.Portable/MarkdownTheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public MarkdownTheme()
Attributes = FontAttributes.None,
BorderSize = 4,
FontSize = 12,
BackgroundColor = Color.Gray.MultiplyAlpha(.1),
};

this.Separator = new MarkdownStyle
Expand Down
2 changes: 2 additions & 0 deletions Sources/MarkdownView.Portable/MarkdownView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ private void Render(QuoteBlock block)
var horizontalStack = new StackLayout()
{
Orientation = StackOrientation.Horizontal,
BackgroundColor = this.Theme.Quote.BackgroundColor,
};

horizontalStack.Children.Add(new BoxView()
Expand All @@ -346,6 +347,7 @@ private void Render(QuoteBlock block)
}
else
{
stack.BackgroundColor = this.Theme.Quote.BackgroundColor;
initialStack.Children.Add(this.stack);
}

Expand Down

0 comments on commit feea906

Please sign in to comment.