[forms-devel] Color.Accent
Jason Smith
jas at microsoft.com
Fri Jul 22 16:20:55 UTC 2016
Reading Color.Accent from the current theme would be the preferred approach :) Thanks!
From: forms-devel-bounces at lists.dot.net [mailto:forms-devel-bounces at lists.dot.net] On Behalf Of Michael Rumpler
Sent: Friday, July 22, 2016 2:57 AM
To: forms-devel at lists.dot.net
Subject: [forms-devel] Color.Accent
Hi,
Color.Accent is used on Android as text and separator color for TableSections and this cannot be changed. It is also used as default color for TextCell.TextColor, but this can be set by the user, so it is no problem.
Color.Accent is set to a hardcoded value in Xamarin.Forms.Forms.SetupInit (in the Platform.Android project) and it cannot be changed by the user.
I could do a PR for
- Making the Color.Accent setter public (so just removing the "internal")
- Enhance the logic in SetupInit to read the colorAccent from the current theme
Either would suffice, both would be better.
What do you prefer?
Regards,
Michael
No virus found in this message.
Checked by AVG - www.avg.com<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.avg.com&data=01%7c01%7cjas%40microsoft.com%7ca8355704250f40040c0208d3b2179125%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=klcQPIyJCGujYk7ouMmL7iDalC0f%2bNHvkUi%2fuElZm%2fk%3d>
Version: 2016.0.7688 / Virus Database: 4627/12658 - Release Date: 07/22/16
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/forms-devel/attachments/20160722/ccbcf3f8/attachment.html>
More information about the forms-devel
mailing list