mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-04-13 09:42:05 +02:00
fixed some tab coloring issues
This commit is contained in:
parent
0a11eccf8d
commit
a23f89541f
@ -61,15 +61,17 @@ class MainActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
main_tabs_holder.setBackgroundColor(config.backgroundColor)
|
||||
|
||||
getInactiveTabIndexes(viewpager.currentItem).forEach {
|
||||
main_tabs_holder.getTabAt(it)?.icon?.applyColorFilter(config.textColor)
|
||||
}
|
||||
|
||||
main_tabs_holder.setSelectedTabIndicatorColor(adjustedPrimaryColor)
|
||||
main_tabs_holder.getTabAt(viewpager.currentItem)?.icon?.applyColorFilter(adjustedPrimaryColor)
|
||||
getAllFragments().forEach {
|
||||
it?.setupColors(config.textColor, config.primaryColor, getAdjustedPrimaryColor())
|
||||
|
||||
if (viewpager.adapter != null) {
|
||||
getInactiveTabIndexes(viewpager.currentItem).forEach {
|
||||
main_tabs_holder.getTabAt(it)?.icon?.applyColorFilter(config.textColor)
|
||||
}
|
||||
|
||||
main_tabs_holder.getTabAt(viewpager.currentItem)?.icon?.applyColorFilter(adjustedPrimaryColor)
|
||||
getAllFragments().forEach {
|
||||
it?.setupColors(config.textColor, config.primaryColor, getAdjustedPrimaryColor())
|
||||
}
|
||||
}
|
||||
|
||||
if (!isSearchOpen) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user