Skip to content

Conversation

@AnEnigmaticBug
Copy link
Contributor

Fixes #1079

Changes: Earlier, all the tab titles were purple in color irrespective of whether
the tabs were active or not.

So, a color-list resource was made to rectify this.

Now, only the active tab's title is purple. Other's are grey(the same
color as the tab icons).

Screenshots for the change:
Current look:
main_nav_current
auth_nav_current
Updated look:
main_nav_updated
auth_nav_updated

AnEnigmaticBug and others added 2 commits February 12, 2019 00:18
Earlier, all the tab titles were purple in color irrespective of whether
the tabs were active or not.

So, a color-list resource was made to rectify this.

Now, only the active tab's title is purple. Other's are grey(the same
color as the tab icons).

Fixes: fossasia#1079
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/colorPrimary" android:state_selected="true" />
<item android:color="@color/lighter_grey" android:state_selected="false" />
</selector>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be add to styles.xml.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put it there because the documentation at developer.android.com said color state list resources should be put in the color directory.

@iamareebjamal iamareebjamal merged commit 2142e61 into fossasia:development Feb 11, 2019
angmas1 pushed a commit to angmas1/open-event-android that referenced this pull request Feb 13, 2019
Earlier, all the tab titles were purple in color irrespective of whether
the tabs were active or not.

So, a color-list resource was made to rectify this.

Now, only the active tab's title is purple. Other's are grey(the same
color as the tab icons).

Fixes: fossasia#1079
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants