|
|
@ -5,7 +5,6 @@ import android.app.Activity |
|
|
|
import android.app.ActivityManager |
|
|
|
import android.app.ActivityManager |
|
|
|
import android.content.Context |
|
|
|
import android.content.Context |
|
|
|
import android.graphics.Color |
|
|
|
import android.graphics.Color |
|
|
|
import android.graphics.drawable.ColorDrawable |
|
|
|
|
|
|
|
import android.os.Build |
|
|
|
import android.os.Build |
|
|
|
import android.view.View |
|
|
|
import android.view.View |
|
|
|
import android.view.View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR |
|
|
|
import android.view.View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR |
|
|
@ -206,7 +205,10 @@ object ATH { |
|
|
|
.setSelectedColor(ThemeStore.accentColor(bottom_navigation_view.context)).create() |
|
|
|
.setSelectedColor(ThemeStore.accentColor(bottom_navigation_view.context)).create() |
|
|
|
itemIconTintList = colorStateList |
|
|
|
itemIconTintList = colorStateList |
|
|
|
itemTextColor = colorStateList |
|
|
|
itemTextColor = colorStateList |
|
|
|
itemBackground = ColorDrawable(ThemeStore.primaryColor(bottomBar.context)) |
|
|
|
itemBackgroundResource = when (AppConfig.isNightTheme) { |
|
|
|
|
|
|
|
true -> R.drawable.item_bg_dark |
|
|
|
|
|
|
|
false -> R.drawable.item_bg_light |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|