Launcher
Launcher copied to clipboard
Show border/shadow around icons
Checklist
- [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [X] This issue contains only one feature request.
- [X] I have read and understood the contribution guidelines.
- [ ] I optionally donated to support the Fossify mission.
Feature description
Add a thin border around around app icons. It is there in almost every launcher app.
Why do you want this feature?
Many app icons have a white background and a border will help distinguish the icon from the drawer background.
Additional information
There is no official API but the current icon shape can be fetched like this:
val iconMask = AdaptiveIconDrawable(ColorDrawable(BLACK), ColorDrawable(BLACK)).iconMask
Then we'll have to scale the mask, draw the shadow, and clip the icon drawables so they are the same shape as the icon mask.
Related:
- https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/graphics/java/android/graphics/drawable/AdaptiveIconDrawable.java;l=158-173
- https://www.reddit.com/r/Fossify/comments/1gwr01c/comment/lyedc1q/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
This must be handled carefully to keep things smooth.