Fix peak theme expand color

This commit is contained in:
h4h13 2019-10-30 20:35:19 +05:30
parent a4c3e46e85
commit 11e988fa80
6 changed files with 152 additions and 131 deletions

View file

@ -2,6 +2,7 @@ package code.name.monkey.retromusic.activities.base
import android.animation.ValueAnimator
import android.annotation.SuppressLint
import android.graphics.Color
import android.graphics.Rect
import android.os.Bundle
import android.view.MotionEvent
@ -95,6 +96,9 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity(), AbsPlay
updateTabs()
bottomSheetBehavior = BottomSheetBehavior.from(slidingPanel)
val themeColor = ATHUtil.resolveColor(this, R.attr.colorPrimary, Color.GRAY)
dimBackground.setBackgroundColor(ColorUtil.withAlpha(themeColor, 0.5f))
}
override fun onResume() {

View file

@ -63,7 +63,7 @@ class MainSettingsFragment : Fragment(), View.OnClickListener {
aboutSettings.setOnClickListener(this)
buyProContainer.apply {
if (App.isProVersion()) show() else hide()
if (!App.isProVersion()) show() else hide()
setOnClickListener {
NavigationUtil.goToProVersion(requireContext())
}