Skip to content

Commit

Permalink
Fastscroller popup customized.
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder-tsys committed May 14, 2023
1 parent a3d2e98 commit a719f3e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import com.nextcloud.android.common.ui.theme.ViewThemeUtilsBase
import com.nextcloud.android.common.ui.theme.utils.AndroidViewThemeUtils
import com.nextcloud.android.common.ui.theme.utils.AndroidXViewThemeUtils
import com.nextcloud.utils.view.FastScrollPopupBackground
import com.nmc.android.utils.DrawableThemeUtils
import com.owncloud.android.R
import com.owncloud.android.lib.common.utils.Log_OC
import com.owncloud.android.lib.resources.shares.ShareType
Expand Down Expand Up @@ -118,7 +119,8 @@ class FilesSpecificViewThemeUtils @Inject constructor(
.setThumbDrawable(getThumbDrawable(context))
.setPopupStyle {
PopupStyles.MD2.accept(it)
it.background = FastScrollPopupBackground(context, scheme.primary)
//NMC customisation
it.background = FastScrollPopupBackground(context, context.resources.getColor(R.color.primary, null))
}
}
}
Expand All @@ -132,7 +134,8 @@ class FilesSpecificViewThemeUtils @Inject constructor(
me.zhanghai.android.fastscroll.R.drawable.afs_md2_thumb,
null
)
return androidViewThemeUtils.tintPrimaryDrawable(context, thumbDrawable)!!
//NMC customisation
return DrawableThemeUtils.tintDrawable(thumbDrawable!!, context.resources.getColor(R.color.primary, null))
}

private fun getHomeAsUpIcon(isMenu: Boolean): Int {
Expand Down

0 comments on commit a719f3e

Please sign in to comment.