mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-25 18:47:51 +02:00
Page number indicator now transparent
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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?) {
|
||||
|
Reference in New Issue
Block a user