mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
simplify bottom tab holder bg color setting
This commit is contained in:
@@ -61,6 +61,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:ac7e52249a'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:b45fde5669'
|
||||||
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
||||||
}
|
}
|
||||||
|
@@ -248,15 +248,9 @@ class MainActivity : SimpleActivity() {
|
|||||||
updateBottomTabItemColors(inactiveView, false)
|
updateBottomTabItemColors(inactiveView, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (baseConfig.isUsingSystemTheme) {
|
val bottomBarColor = getBottomTabsBackgroundColor()
|
||||||
val bottomBarColor = resources.getColor(R.color.you_status_bar_color, theme)
|
|
||||||
main_tabs_holder.setBackgroundColor(bottomBarColor)
|
main_tabs_holder.setBackgroundColor(bottomBarColor)
|
||||||
updateNavigationBarColor(bottomBarColor)
|
updateNavigationBarColor(bottomBarColor)
|
||||||
} else {
|
|
||||||
val bottomBarColor = config.backgroundColor.lightenColor(4)
|
|
||||||
main_tabs_holder.setBackgroundColor(bottomBarColor)
|
|
||||||
updateNavigationBarColor(bottomBarColor)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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