Closed CheK539 closed 3 years ago
@CheK539 thank you very much for the detailed report. Looking into it.
@mikepenz FYI This issue seems to also be present for ProfileDrawerItem
@davidhowe it should be the same extension function. due to it not having access to the context, the res
variant is no-op and it's suggested to use textColor
directly
About this issue
Hi, I am trying to create a PrimaryDrawerItem with color changing textColor and desctiptionTextColor using textColorRes and desctiptionTextColorRes, but it doesn't work as I expected. Instead of changing the textColor, the selectedColor is changed. Note that changing the textColor field manually works correctly. Then I went through the source code and saw that textColorRes and descriptionTextColorRes are a SelectableColor extension instead of a NameableColor in NameableColor.kt:
Sample code for this:
Details
Checklist