mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
use different bottom colors at Material You theme
This commit is contained in:
@@ -244,6 +244,15 @@ class MainActivity : SimpleActivity() {
|
|||||||
val inactiveView = main_tabs_holder.getTabAt(index)?.customView
|
val inactiveView = main_tabs_holder.getTabAt(index)?.customView
|
||||||
updateBottomTabItemColors(inactiveView, false)
|
updateBottomTabItemColors(inactiveView, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (baseConfig.isUsingSystemTheme) {
|
||||||
|
val bottomBarColor = resources.getColor(R.color.you_status_bar_color, theme)
|
||||||
|
main_tabs_holder.setBackgroundColor(bottomBarColor)
|
||||||
|
updateNavigationBarColor(bottomBarColor)
|
||||||
|
} else {
|
||||||
|
main_tabs_holder.setBackgroundColor(getProperBackgroundColor())
|
||||||
|
updateNavigationBarColor(config.navigationBarColor)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getInactiveTabIndexes(activeIndex: Int) = (0 until tabsList.size).filter { it != activeIndex }
|
private fun getInactiveTabIndexes(activeIndex: Int) = (0 until tabsList.size).filter { it != activeIndex }
|
||||||
|
Reference in New Issue
Block a user