Fix more colors
This commit is contained in:
parent
a94666c8bc
commit
49c2eca7dd
5 changed files with 8 additions and 16 deletions
|
@ -47,9 +47,7 @@ class FitFragment : AbsPlayerFragment() {
|
||||||
playbackControlsFragment.setDark(color)
|
playbackControlsFragment.setDark(color)
|
||||||
lastColor = color
|
lastColor = color
|
||||||
callbacks?.onPaletteColorChanged()
|
callbacks?.onPaletteColorChanged()
|
||||||
|
|
||||||
ToolbarContentTintHelper.colorizeToolbar(playerToolbar, ATHUtil.resolveColor(requireContext(), R.attr.colorControlNormal), requireActivity())
|
ToolbarContentTintHelper.colorizeToolbar(playerToolbar, ATHUtil.resolveColor(requireContext(), R.attr.colorControlNormal), requireActivity())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun toggleFavorite(song: Song) {
|
override fun toggleFavorite(song: Song) {
|
||||||
|
@ -77,8 +75,7 @@ class FitFragment : AbsPlayerFragment() {
|
||||||
|
|
||||||
private fun setUpSubFragments() {
|
private fun setUpSubFragments() {
|
||||||
playbackControlsFragment = childFragmentManager.findFragmentById(R.id.playbackControlsFragment) as FitPlaybackControlsFragment
|
playbackControlsFragment = childFragmentManager.findFragmentById(R.id.playbackControlsFragment) as FitPlaybackControlsFragment
|
||||||
|
val playerAlbumCoverFragment: PlayerAlbumCoverFragment = childFragmentManager.findFragmentById(R.id.playerAlbumCoverFragment) as PlayerAlbumCoverFragment
|
||||||
val playerAlbumCoverFragment = childFragmentManager.findFragmentById(R.id.playerAlbumCoverFragment) as PlayerAlbumCoverFragment
|
|
||||||
playerAlbumCoverFragment.setCallbacks(this)
|
playerAlbumCoverFragment.setCallbacks(this)
|
||||||
playerAlbumCoverFragment.removeEffect()
|
playerAlbumCoverFragment.removeEffect()
|
||||||
}
|
}
|
||||||
|
@ -88,13 +85,12 @@ class FitFragment : AbsPlayerFragment() {
|
||||||
inflateMenu(R.menu.menu_player)
|
inflateMenu(R.menu.menu_player)
|
||||||
setNavigationOnClickListener { requireActivity().onBackPressed() }
|
setNavigationOnClickListener { requireActivity().onBackPressed() }
|
||||||
setOnMenuItemClickListener(this@FitFragment)
|
setOnMenuItemClickListener(this@FitFragment)
|
||||||
ToolbarContentTintHelper.colorizeToolbar(this, ATHUtil.resolveColor(context, R.attr.iconColor), requireActivity())
|
ToolbarContentTintHelper.colorizeToolbar(this, ATHUtil.resolveColor(requireContext(), R.attr.colorControlNormal), requireActivity())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onServiceConnected() {
|
override fun onServiceConnected() {
|
||||||
updateIsFavorite()
|
updateIsFavorite()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPlayingMetaChanged() {
|
override fun onPlayingMetaChanged() {
|
||||||
|
@ -102,7 +98,6 @@ class FitFragment : AbsPlayerFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
fun newInstance(): FitFragment {
|
fun newInstance(): FitFragment {
|
||||||
return FitFragment()
|
return FitFragment()
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ class FlatPlayerFragment : AbsPlayerFragment() {
|
||||||
playerToolbar.inflateMenu(R.menu.menu_player)
|
playerToolbar.inflateMenu(R.menu.menu_player)
|
||||||
playerToolbar.setNavigationOnClickListener { _ -> requireActivity().onBackPressed() }
|
playerToolbar.setNavigationOnClickListener { _ -> requireActivity().onBackPressed() }
|
||||||
playerToolbar.setOnMenuItemClickListener(this)
|
playerToolbar.setOnMenuItemClickListener(this)
|
||||||
ToolbarContentTintHelper.colorizeToolbar(playerToolbar, ATHUtil.resolveColor(context, R.attr.iconColor), requireActivity())
|
ToolbarContentTintHelper.colorizeToolbar(playerToolbar, ATHUtil.resolveColor(requireContext(), R.attr.colorControlNormal), requireActivity())
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun colorize(i: Int) {
|
private fun colorize(i: Int) {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="?attr/colorSurface"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
|
@ -92,7 +93,7 @@
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
android:src="@drawable/ic_add_photo_white_24dp"
|
android:src="@drawable/ic_add_photo_white_24dp"
|
||||||
app:tint="?iconColor" />
|
app:tint="?android:attr/colorControlNormal" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:background="?attr/colorSurface"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
|
@ -105,8 +106,8 @@
|
||||||
android:layout_margin="16dp"
|
android:layout_margin="16dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
app:tint="?attr/colorControlNormal"
|
android:src="@drawable/ic_add_photo_white_24dp"
|
||||||
android:src="@drawable/ic_add_photo_white_24dp" />
|
app:tint="?attr/colorControlNormal" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
|
|
|
@ -3,15 +3,10 @@
|
||||||
|
|
||||||
<attr name="roundSelector" format="reference" />
|
<attr name="roundSelector" format="reference" />
|
||||||
<attr name="rectSelector" format="reference" />
|
<attr name="rectSelector" format="reference" />
|
||||||
|
|
||||||
<attr name="defaultFooterColor" format="color" />
|
<attr name="defaultFooterColor" format="color" />
|
||||||
|
|
||||||
<attr name="toolbarPopupTheme" format="reference" />
|
<attr name="toolbarPopupTheme" format="reference" />
|
||||||
|
|
||||||
<attr name="iconColor" format="color" />
|
|
||||||
<attr name="dividerColor" format="color" />
|
<attr name="dividerColor" format="color" />
|
||||||
|
|
||||||
|
|
||||||
<declare-styleable name="BlurLayout">
|
<declare-styleable name="BlurLayout">
|
||||||
<attr name="blk_downscaleFactor" format="float" />
|
<attr name="blk_downscaleFactor" format="float" />
|
||||||
<attr name="blk_blurRadius" format="integer" />
|
<attr name="blk_blurRadius" format="integer" />
|
||||||
|
|
Loading…
Reference in a new issue