Skip to content

Cahnge gallery icon color if it is on overlay menu #448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2017

Conversation

neslihanturan
Copy link
Collaborator

@neslihanturan neslihanturan commented Mar 20, 2017

Fixes point 1 of #442 .
If you suggest a more clear way to solve, I would be appreciated.
selection_011
selection_010

@veyndan
Copy link
Contributor

veyndan commented Mar 20, 2017

How about something like this?

@domdomegg
Copy link
Member

domdomegg commented Mar 20, 2017

@veyndan That's changing the color based off the theme, we need to change the color depending on whether it is in the overflow menu or not

i.e. it should still be white in the light theme if in the action bar rather than the menu

@neslihanturan
Copy link
Collaborator Author

neslihanturan commented Mar 20, 2017

@veyndan Actually, our icon colors are already set with the method in stackoverflow post you showed. But it wouldn't work in our case. We need to detect if icon is on overlay menu or not. If so, we should set the icon color to reverse of current theme required.

@veyndan
Copy link
Contributor

veyndan commented Mar 20, 2017

Oops sorry I misunderstood the problem. Thanks for the clarifications!

@veyndan
Copy link
Contributor

veyndan commented Mar 20, 2017

Here's a suggestion that may work. If we use a Toolbar instead of the ActionBar then we can specify the theme specifically for the popup menu via popupTheme. Here we can change the icon to the opposite icon. I'll give it a go.

I think this'll require using Toolbar's across the app, so I'll just make a separate PR for that.

@veyndan
Copy link
Contributor

veyndan commented Mar 20, 2017

It appears that we aren't using AppCompatActivity consistently throughout the codebase, so I need to convert that before working on the rest.

If we need this solution straight away then I guess it'd be fine to merge and then a better solution can replace it later on. I don't know how urgent this is.

@misaochan
Copy link
Member

Unless there are objections, I would go with merging as soon as possible, so we can get the new UI into beta on schedule.

@veyndan
Copy link
Contributor

veyndan commented Mar 20, 2017

Having a hardcoded value of 360 to check if there is enough room for two icons feels a bit hacky, but this will be solved in a later commit. Apparently time is of the essence, so thanks for the speedy fix!

@veyndan veyndan merged commit cfea444 into commons-app:master Mar 20, 2017
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.

4 participants