Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ class AppDrawerAdapter(
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
binding = AdapterAppDrawerBinding.inflate(LayoutInflater.from(parent.context), parent, false)
prefs = Prefs(parent.context)
val typeface = ResourcesCompat.getFont(parent.context, R.font.roboto)
if (prefs.useCustomIconFont) {
val typeface = ResourcesCompat.getFont(parent.context, R.font.roboto)
binding.appTitle.typeface = typeface
}
if (prefs.followAccentColors) {
val fontColor = getHexFontColor(parent.context)
binding.appTitle.setTextColor(fontColor)
}
binding.appTitle.textSize = prefs.textSizeLauncher.toFloat()
val fontColor = getHexFontColor(parent.context)
binding.appTitle.setTextColor(fontColor)
val padding: Int = prefs.textMarginSize
binding.appTitle.setPadding(0, padding, 0, padding)
return ViewHolder(binding)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,16 @@ class AppDrawerFragment : Fragment() {

val searchTextView = binding.search.findViewById<TextView>(R.id.search_src_text)
if (searchTextView != null) searchTextView.gravity = gravity
val typeface = ResourcesCompat.getFont(requireActivity(), R.font.roboto)

if (prefs.followAccentColors) {
val fontColor = getHexFontColor(requireActivity())
searchTextView.setTextColor(fontColor)
}
if (prefs.useCustomIconFont) {
val typeface = ResourcesCompat.getFont(requireActivity(), R.font.roboto)
searchTextView.typeface = typeface
}
val textSize = prefs.textSizeLauncher.toFloat()
searchTextView.typeface = typeface
searchTextView.textSize = textSize

initViewModel(flag, viewModel, appAdapter)
Expand Down