Replace Retro Music with Metro

This commit is contained in:
Muntashir Al-Islam 2020-10-16 02:30:32 +06:00
parent e5a27ca7f1
commit 2059a55281
3 changed files with 3 additions and 21 deletions

View file

@ -78,13 +78,7 @@ abstract class AbsRecyclerViewFragment<A : RecyclerView.Adapter<*>, LM : Recycle
navOptions
)
}
val color = ThemeStore.accentColor(requireContext())
val hexColor = String.format("#%06X", 0xFFFFFF and color)
val appName = HtmlCompat.fromHtml(
"Retro <span style='color:$hexColor';>Music</span>",
HtmlCompat.FROM_HTML_MODE_COMPACT
)
appNameText.text = appName
appNameText.text = getString(R.string.app_name)
}
private fun setUpRecyclerView() {

View file

@ -180,13 +180,7 @@ public class FoldersFragment extends AbsMainActivityFragment
private void setUpTitle() {
toolbar.setNavigationOnClickListener(
v -> Navigation.findNavController(v).navigate(R.id.searchFragment, null, getNavOptions()));
int color = ThemeStore.Companion.accentColor(requireContext());
String hexColor = String.format("#%06X", 0xFFFFFF & color);
Spanned appName =
HtmlCompat.fromHtml(
"Retro <span style='color:" + hexColor + ";'>Music</span>",
HtmlCompat.FROM_HTML_MODE_COMPACT);
appNameText.setText(appName);
appNameText.setText(getString(R.string.app_name));
}
@Override

View file

@ -122,13 +122,7 @@ class HomeFragment :
navOptions
)
}
val color = ThemeStore.accentColor(requireContext())
val hexColor = String.format("#%06X", 0xFFFFFF and color)
val appName = HtmlCompat.fromHtml(
"Retro <span style='color:$hexColor';>Music</span>",
HtmlCompat.FROM_HTML_MODE_COMPACT
)
appNameText.text = appName
appNameText.text = getString(R.string.app_name)
}
private fun loadProfile() {