Update page indicator colors and new Readmangatoday domain

This commit is contained in:
inorichi 2017-11-23 18:00:49 +01:00
parent 6394388714
commit 25898d34ca
3 changed files with 6 additions and 5 deletions

View file

@ -17,7 +17,7 @@ class Readmangatoday : ParsedHttpSource() {
override val name = "ReadMangaToday"
override val baseUrl = "http://www.readmanga.today"
override val baseUrl = "http://www.readmng.com/"
override val lang = "en"

View file

@ -15,14 +15,16 @@ import android.widget.TextView
class PageIndicatorTextView(context: Context, attrs: AttributeSet? = null) :
AppCompatTextView(context, attrs) {
private val fillColor = Color.rgb(235, 235, 235)
private val strokeColor = Color.rgb(45, 45, 45)
override fun onDraw(canvas: Canvas) {
val textColor = textColors.defaultColor
textColorField.set(this, Color.BLACK)
textColorField.set(this, strokeColor)
paint.strokeWidth = 4f
paint.style = Paint.Style.STROKE
super.onDraw(canvas)
textColorField.set(this, textColor)
textColorField.set(this, fillColor)
paint.strokeWidth = 0f
paint.style = Paint.Style.FILL
super.onDraw(canvas)

View file

@ -30,7 +30,6 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:padding="4dp"
android:textColor="@color/md_white_1000"
android:textStyle="bold" />
</FrameLayout>