c-lamont / PXTabs

MIT License
36 stars 5 forks source link

SelectedBackgroundColor and SelectedTextStyle #33

Open YuriMB opened 6 years ago

YuriMB commented 6 years ago

There is currently no support for a different background color for selected tabs. This would be nice to combine with the different color images. Same goes for SelectedTextStyle. It is by default bold if selected, but that makes the text slightly larger, leading to clipping issues. The only solution for now is to shrink the text further, such that it fits when bold. A better option would be to make this a property as well.

c-lamont commented 6 years ago

Hi @YuriMB,

Thanks for your feedback, I understand your issue. One of the goals of this project is to make it as customisable as possible, so it would be good to include your suggestions.

For the moment I believe you can set the background color of a PXTab just by setting its 'BackgroundColor'. But this means you have to use your own logic to determine when to set it.

I have also exposed the 'TabLabel' on every 'PXTab' so you can style this how you like, but again you will have to use your own logic to prevent the bold from being set.

Or, you could create a PR, you can follow the pattern of how other attributes are set inside the 'PXTab' class.

If not then I can implement it when I have time.

Cheers

Chris