fix colour bleed in reading view

This commit is contained in:
dosiecki 2016-06-01 15:45:48 -07:00
parent ef40560faf
commit ea52d248f7
6 changed files with 16 additions and 4 deletions

View file

@ -9,7 +9,8 @@
android:id="@+id/reading_scrollview" android:id="@+id/reading_scrollview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
style="?itemBackground" > style="?readingBackground"
>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -37,7 +38,7 @@
android:id="@+id/reading_webview" android:id="@+id/reading_webview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="?itemBackground" style="?readingBackground"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"

View file

@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="?itemBackground" style="?readingBackground"
android:orientation="vertical" > android:orientation="vertical" >
<RelativeLayout <RelativeLayout

View file

@ -2,7 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="?itemBackground" style="?readingBackground"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingBottom="12dp" android:paddingBottom="12dp"

View file

@ -9,6 +9,7 @@
<attr name="actionbarBackground" format="string" /> <attr name="actionbarBackground" format="string" />
<attr name="listBackground" format="string" /> <attr name="listBackground" format="string" />
<attr name="itemBackground" format="string" /> <attr name="itemBackground" format="string" />
<attr name="readingBackground" format="string" />
<attr name="defaultText" format="string" /> <attr name="defaultText" format="string" />
<attr name="selectorStoryBackground" format="string" /> <attr name="selectorStoryBackground" format="string" />
<attr name="rowItemHeaderBackground" format="string" /> <attr name="rowItemHeaderBackground" format="string" />

View file

@ -93,6 +93,14 @@
<item name="android:background">@color/dark_item_background</item> <item name="android:background">@color/dark_item_background</item>
</style> </style>
<style name="readingBackground">
<item name="android:background">@color/white</item>
</style>
<style name="readingBackground.dark">
<item name="android:background">@color/dark_item_background</item>
</style>
<style name="defaultText"> <style name="defaultText">
<item name="android:textColorLink">@color/linkblue</item> <item name="android:textColorLink">@color/linkblue</item>
<item name="android:textColor">@color/darkgray</item> <item name="android:textColor">@color/darkgray</item>

View file

@ -10,6 +10,7 @@
<item name="actionbarBackground">@style/actionbarBackground</item> <item name="actionbarBackground">@style/actionbarBackground</item>
<item name="listBackground">@style/listBackground</item> <item name="listBackground">@style/listBackground</item>
<item name="itemBackground">@style/itemBackground</item> <item name="itemBackground">@style/itemBackground</item>
<item name="readingBackground">@style/readingBackground</item>
<item name="defaultText">@style/defaultText</item> <item name="defaultText">@style/defaultText</item>
<item name="selectorStoryBackground">@style/selectorStoryBackground</item> <item name="selectorStoryBackground">@style/selectorStoryBackground</item>
<item name="rowItemHeaderBackground">@style/rowItemHeaderBackground</item> <item name="rowItemHeaderBackground">@style/rowItemHeaderBackground</item>
@ -43,6 +44,7 @@
<item name="actionbarBackground">@style/actionbarBackground.dark</item> <item name="actionbarBackground">@style/actionbarBackground.dark</item>
<item name="listBackground">@style/listBackground.dark</item> <item name="listBackground">@style/listBackground.dark</item>
<item name="itemBackground">@style/itemBackground.dark</item> <item name="itemBackground">@style/itemBackground.dark</item>
<item name="readingBackground">@style/readingBackground.dark</item>
<item name="defaultText">@style/defaultText.dark</item> <item name="defaultText">@style/defaultText.dark</item>
<item name="selectorStoryBackground">@style/selectorStoryBackground.dark</item> <item name="selectorStoryBackground">@style/selectorStoryBackground.dark</item>
<item name="rowItemHeaderBackground">@style/rowItemHeaderBackground.dark</item> <item name="rowItemHeaderBackground">@style/rowItemHeaderBackground.dark</item>