-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Changed 3-dot menu color in custom picker (#6423) #6451
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
base: main
Are you sure you want to change the base?
Changed 3-dot menu color in custom picker (#6423) #6451
Conversation
* Added drawables ic_overflow_black and ic_overflow_white * Added overflow_menu_button attribute to switch between white and black drawables depending on if theme is light or dark * Set Overflow Menu Icon srcCompat to overflow_menu_button attribute
Please update your PR description to follow the default template, @JohnSchneuker. You are currently missing the linked issue in the PR. |
@rohit9625 Sorry about that, I added the link and made the description match the template more. |
The 3-dot icon looks great on both dark and light themes: Screen_recording_20251008_010158.mp4 |
Hi @nicolas-raoul, I want to merge this PR. So, are there any additional steps that I need to take, such as adding something to the merge commit's description or keeping it as the default? |
Interestingly the "Nearby" activity's 3-dots button looks great in both dark and light modes. Is there a specific reason why adding these two files is necessary here? |
Hi @nicolas-raoul, on the nearby screen, we are using the global options menu by calling: apps-android-commons/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt Line 386 in 755d831
Where the menu items are provided by this callback: apps-android-commons/app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt Lines 392 to 401 in 755d831
And for the Custom Selector, the menu icon was added using a drawable resource file. I think that's why John added drawable files. |
Thanks Rohit! By the way, to merge, clicking the green "Squash and merge" button is enough. 🙂 |
The files for black and white might have already been present under a different name, I'm not sure. I would have to look at all the drawables to be sure. All I know was there was initially only a singular drawable file with the term ic_overflow, which is why I added the additional two files. |
Hi @JohnSchneuker,
But removing that usage doesn't have any effect on the Notification Screen's menu icon because that is added using global menu options. Don't worry about that. Thanks :) |
✅ Generated APK variants! |
Fixes #6423
What changes did you make and why?
Added drawables ic_overflow_black and ic_overflow_white
Added overflow_menu_button attribute to switch between white and black drawables depending on if theme is light or dark
Set Overflow Menu Icon srcCompat to overflow_menu_button attribute
Tests performed:
Tested BetaDebug on virtual Medium Phone with API 36.1
Screenshots: