Translucent reader UI

This commit is contained in:
arkon 2020-02-10 22:25:53 -08:00 committed by Jay
parent ee6d2927f9
commit 8c91b7628f
4 changed files with 12 additions and 8 deletions

View File

@ -46,8 +46,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?colorPrimary"
android:elevation="4dp" />
android:background="?colorPrimary" />
<LinearLayout
android:id="@+id/reader_menu_bottom"

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="darkPrimaryTranslucent">#BF212121</color>
</resources>

View File

@ -23,6 +23,7 @@
<color name="readerDarkBackground">#1C1C1D</color>
<color name="button_bg">@color/md_white_1000</color>
<color name="gray_button">#404040</color>
<color name="darkPrimaryTranslucent">@color/darkPrimaryColor</color>
<color name="textColorPrimary">@color/md_black_1000_87</color>
<color name="textColorSecondary">@color/md_black_1000_54</color>

View File

@ -77,8 +77,8 @@
<!--==============-->
<style name="Theme.Base.Reader" parent="Theme.Base">
<item name="android:forceDarkAllowed">false</item>
<item name="colorPrimary">@color/darkPrimaryColor</item>
<item name="colorPrimaryDark">@color/darkPrimaryColor</item>
<item name="colorPrimary">@color/darkPrimaryTranslucent</item>
<item name="colorPrimaryDark">@color/darkPrimaryTranslucent</item>
<item name="android:colorBackground">@android:color/white</item>
<item name="android:statusBarColor">?colorPrimaryDark</item>
<item name="android:navigationBarColor">?colorPrimaryDark</item>
@ -86,8 +86,8 @@
<style name="Theme.Base.Reader.Dark" parent="Theme.MaterialComponents.NoActionBar">
<item name="android:forceDarkAllowed">false</item>
<item name="colorPrimary">@color/darkPrimaryColor</item>
<item name="colorPrimaryDark">@color/darkPrimaryColor</item>
<item name="colorPrimary">@color/darkPrimaryTranslucent</item>
<item name="colorPrimaryDark">@color/darkPrimaryTranslucent</item>
<item name="android:colorBackground">@android:color/black</item>
<item name="colorAccent">#3399FF</item>
<item name="android:textColorPrimary">@color/md_white_1000</item>
@ -125,8 +125,8 @@
<style name="Theme.Base.Reader.Light" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:forceDarkAllowed">false</item>
<item name="colorPrimary">@color/darkPrimaryColor</item>
<item name="colorPrimaryDark">@color/darkPrimaryColor</item>
<item name="colorPrimary">@color/darkPrimaryTranslucent</item>
<item name="colorPrimaryDark">@color/darkPrimaryTranslucent</item>
<item name="android:colorBackground">@android:color/white</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:textColorPrimary">@color/md_black_1000_87</item>