[macOS] Button's Font attributes arent setting when using color. (#971)

* [macOS] Button's font attributes werent working when TextColor was set.

* [macOS] Button's font attributes werent working when TextColor was set.
This commit is contained in:
BradChase2011 2017-06-12 06:47:09 -04:00 коммит произвёл Rui Marinho
Родитель d9cf95585c
Коммит e2c0a282d0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -123,7 +123,7 @@ namespace Xamarin.Forms.Platform.MacOS
}
else
{
var textWithColor = new NSAttributedString(Element.Text ?? "", foregroundColor: color.ToNSColor( ), paragraphStyle: new NSMutableParagraphStyle( ) { Alignment = NSTextAlignment.Center });
var textWithColor = new NSAttributedString(Element.Text ?? "", font: Element.Font.ToNSFont(), foregroundColor: color.ToNSColor( ), paragraphStyle: new NSMutableParagraphStyle( ) { Alignment = NSTextAlignment.Center });
Control.AttributedTitle = textWithColor;
}
}