还是感觉原来颜色好看点

pull/83/head
kunfei 5 years ago
parent f95c07cc3c
commit 1423f8b90e
  1. 6
      app/src/main/java/io/legado/app/lib/theme/ATH.kt

@ -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
}
} }
} }

Loading…
Cancel
Save