Page number indicator now transparent

This commit is contained in:
len 2016-03-21 15:58:59 +01:00
parent 0078cb88c3
commit ce271649ac
3 changed files with 10 additions and 3 deletions

View File

@ -517,11 +517,11 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
if (theme == BLACK_THEME) {
rootView.setBackgroundColor(Color.BLACK)
page_number.setTextColor(ContextCompat.getColor(this, R.color.textColorPrimaryDark))
page_number.setBackgroundColor(ContextCompat.getColor(this, R.color.backgroundDark))
page_number.setBackgroundColor(ContextCompat.getColor(this, R.color.pageNumberBackgroundDark))
} else {
rootView.setBackgroundColor(Color.WHITE)
page_number.setTextColor(ContextCompat.getColor(this, R.color.textColorPrimaryLight))
page_number.setBackgroundColor(ContextCompat.getColor(this, R.color.backgroundLight))
page_number.setBackgroundColor(ContextCompat.getColor(this, R.color.pageNumberBackgroundLight))
}
}

View File

@ -4,6 +4,7 @@ import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.os.Environment
import android.support.v4.content.ContextCompat
import android.support.v7.widget.RecyclerView
import android.view.View
import android.view.ViewGroup
@ -76,7 +77,7 @@ class SettingsDownloadsFragment : SettingsNestedFragment() {
File.separator + getString(R.string.app_name) +
File.separator + "downloads"
return mutableListOf(File(defaultDir)) + activity.getExternalFilesDirs("")
return mutableListOf(File(defaultDir)) + ContextCompat.getExternalFilesDirs(activity, "")
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {

View File

@ -32,6 +32,10 @@
<color name="selectorColorDark">@color/md_blue_400_50</color>
<!-- Reader Theme -->
<color name="pageNumberBackgroundLight">@color/md_grey_50_75</color>
<color name="pageNumberBackgroundDark">@color/md_grey_900_75</color>
<!-- Text Colors -->
<color name="md_black_1000_87">#DE000000</color>
<color name="md_black_1000_54">#8A000000</color>
@ -47,10 +51,12 @@
<color name="md_black_1000">#000000</color>
<color name="md_grey_50">#FAFAFA</color>
<color name="md_grey_50_75">#BFFAFAFA</color>
<color name="md_grey_100">#F5F5F5</color>
<color name="md_grey_300">#E0E0E0</color>
<color name="md_grey_800">#424242</color>
<color name="md_grey_900">#212121</color>
<color name="md_grey_900_75">#BF212121</color>
<color name="md_blue_400">#42A5F5</color>
<color name="md_blue_400_50">#8042A5F5</color>