mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 23:11:58 +03:00
add comment for topMargin
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
e10f3b1afd
commit
c8510275bb
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ object DrawableUtil {
|
|||
|
||||
val left = (backgroundWidth - scaledOverlayWidth) / 2
|
||||
val top = (backgroundHeight - scaledOverlayHeight) / 2
|
||||
|
||||
// Icons are centered on the folder icon. However, some icons take up more vertical space,
|
||||
// so adding a top margin to all icons helps center the overlay icon better.
|
||||
val topMargin = 2
|
||||
|
||||
containerDrawable.setLayerInset(1, left, top + topMargin, left, top)
|
||||
|
|
Loading…
Reference in a new issue