ui: phase out custom track color

This commit is contained in:
Alexander Capehart
2024-10-18 16:37:49 -06:00
parent 4befe1910f
commit bba4ae81e7
4 changed files with 1 additions and 16 deletions
@@ -74,7 +74,6 @@ import org.oxycblt.auxio.playback.PlaybackDecision
import org.oxycblt.auxio.playback.PlaybackViewModel
import org.oxycblt.auxio.util.collect
import org.oxycblt.auxio.util.collectImmediately
import org.oxycblt.auxio.util.getColorCompat
import org.oxycblt.auxio.util.lazyReflectedField
import org.oxycblt.auxio.util.lazyReflectedMethod
import org.oxycblt.auxio.util.navigateSafe
@@ -141,11 +140,6 @@ class HomeFragment :
MenuCompat.setGroupDividerEnabled(menu, true)
}
// Load the track color in manually as it's unclear whether the track actually supports
// using a ColorStateList in the resources
binding.homeIndexingProgress.trackColor =
requireContext().getColorCompat(R.color.sel_track).defaultColor
binding.homePager.apply {
// Update HomeViewModel whenever the user swipes through the ViewPager.
// This would be implemented in HomeFragment itself, but OnPageChangeCallback
@@ -71,11 +71,6 @@ class PlaybackBarFragment : ViewBindingFragment<FragmentPlaybackBarBinding>() {
// Set up actions
binding.playbackPlayPause.setOnClickListener { playbackModel.togglePlaying() }
// Load the track color in manually as it's unclear whether the track actually supports
// using a ColorStateList in the resources.
binding.playbackProgressBar.trackColor =
context.getColorCompat(R.color.sel_track).defaultColor
// binding.playbackProgressBar.wavelength = 48
// binding.playbackProgressBar.speed = 20
// binding.playbackProgressBar.amplitude = 5