优化阅读界面导航栏颜色

pull/540/head
gedoor 4 years ago
parent 74454371ab
commit 8ab61c227b
  1. 4
      app/src/main/java/io/legado/app/ui/book/read/ReadBookBaseActivity.kt
  2. 1
      app/src/main/res/values-night/colors.xml
  3. 1
      app/src/main/res/values/colors.xml
  4. 2
      app/src/main/res/values/styles.xml

@ -146,8 +146,10 @@ abstract class ReadBookBaseActivity :
when {
binding.readMenu.isVisible -> ATH.setNavigationBarColorAuto(this)
bottomDialog > 0 -> ATH.setNavigationBarColorAuto(this, bottomBackground)
else -> {
else -> if (AppConfig.isTransparentStatusBar) {
ATH.setNavigationBarColorAuto(this, Color.TRANSPARENT)
} else {
ATH.setNavigationBarColorAuto(this, Color.parseColor("#20000000"))
}
}
}

@ -12,6 +12,7 @@
<color name="night_mask">#69000000</color>
<color name="transparent10">#10ffffff</color>
<color name="transparent20">#20ffffff</color>
<color name="transparent30">#30ffffff</color>
<color name="transparent50">#50ffffff</color>

@ -19,6 +19,7 @@
<color name="transparent">#00000000</color>
<color name="transparent10">#10000000</color>
<color name="transparent20">#20000000</color>
<color name="transparent30">#30000000</color>
<color name="transparent50">#50000000</color>

@ -33,6 +33,8 @@
<item name="android:popupMenuStyle">@style/Style.PopupMenu</item>
<item name="android:statusBarColor">@color/transparent</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:enforceStatusBarContrast" tools:ignore="NewApi">false</item>
<item name="android:enforceNavigationBarContrast" tools:ignore="NewApi">false</item>
</style>
<style name="AppTheme.AppBarOverlay.Light" parent="ThemeOverlay.AppCompat.Light">

Loading…
Cancel
Save