style: 主题色

pull/95/head
kunfei 5 years ago
parent 3364e6f165
commit 415cac16f7
  1. 5
      app/src/main/java/io/legado/app/lib/theme/ATH.kt
  2. 2
      app/src/main/res/values/colors.xml

@ -205,10 +205,7 @@ 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
itemBackgroundResource = when (AppConfig.isNightTheme) { itemBackgroundResource = R.color.background_menu
true -> R.drawable.item_bg_dark
false -> R.drawable.item_bg_light
}
} }
} }

@ -15,7 +15,7 @@
<color name="background">@color/md_grey_50</color> <color name="background">@color/md_grey_50</color>
<color name="background_card">@color/md_grey_100</color> <color name="background_card">@color/md_grey_100</color>
<color name="background_menu">@color/md_grey_200</color> <color name="background_menu">@color/md_grey_300</color>
<color name="transparent">#00000000</color> <color name="transparent">#00000000</color>
<color name="transparent30">#30000000</color> <color name="transparent30">#30000000</color>

Loading…
Cancel
Save