[Now Playing: Fit] Fixed Fit theme button colors
This commit is contained in:
parent
27485bea2d
commit
853289a81d
2 changed files with 5 additions and 1 deletions
|
@ -77,6 +77,10 @@ fun Context.colorControlNormal() = resolveColor(android.R.attr.colorControlNorma
|
||||||
|
|
||||||
fun Fragment.colorControlNormal() = resolveColor(android.R.attr.colorControlNormal)
|
fun Fragment.colorControlNormal() = resolveColor(android.R.attr.colorControlNormal)
|
||||||
|
|
||||||
|
fun Context.colorBackground() = resolveColor(android.R.attr.colorBackground)
|
||||||
|
|
||||||
|
fun Fragment.colorBackground() = resolveColor(android.R.attr.colorBackground)
|
||||||
|
|
||||||
fun Context.textColorPrimary() = resolveColor(android.R.attr.textColorPrimary)
|
fun Context.textColorPrimary() = resolveColor(android.R.attr.textColorPrimary)
|
||||||
|
|
||||||
fun Fragment.textColorPrimary() = resolveColor(android.R.attr.textColorPrimary)
|
fun Fragment.textColorPrimary() = resolveColor(android.R.attr.textColorPrimary)
|
||||||
|
|
|
@ -128,7 +128,7 @@ class FitPlaybackControlsFragment :
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun setColor(color: MediaNotificationProcessor) {
|
override fun setColor(color: MediaNotificationProcessor) {
|
||||||
if (ColorUtil.isColorLight(colorControlNormal())) {
|
if (ColorUtil.isColorLight(colorBackground())) {
|
||||||
lastPlaybackControlsColor =
|
lastPlaybackControlsColor =
|
||||||
MaterialValueHelper.getSecondaryTextColor(requireContext(), true)
|
MaterialValueHelper.getSecondaryTextColor(requireContext(), true)
|
||||||
lastDisabledPlaybackControlsColor =
|
lastDisabledPlaybackControlsColor =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue