mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-29 20:03:17 -05:00
Update page indicator colors and new Readmangatoday domain
This commit is contained in:
parent
6394388714
commit
25898d34ca
3 changed files with 6 additions and 5 deletions
|
@ -17,7 +17,7 @@ class Readmangatoday : ParsedHttpSource() {
|
||||||
|
|
||||||
override val name = "ReadMangaToday"
|
override val name = "ReadMangaToday"
|
||||||
|
|
||||||
override val baseUrl = "http://www.readmanga.today"
|
override val baseUrl = "http://www.readmng.com/"
|
||||||
|
|
||||||
override val lang = "en"
|
override val lang = "en"
|
||||||
|
|
||||||
|
|
|
@ -15,14 +15,16 @@ import android.widget.TextView
|
||||||
class PageIndicatorTextView(context: Context, attrs: AttributeSet? = null) :
|
class PageIndicatorTextView(context: Context, attrs: AttributeSet? = null) :
|
||||||
AppCompatTextView(context, attrs) {
|
AppCompatTextView(context, attrs) {
|
||||||
|
|
||||||
|
private val fillColor = Color.rgb(235, 235, 235)
|
||||||
|
private val strokeColor = Color.rgb(45, 45, 45)
|
||||||
|
|
||||||
override fun onDraw(canvas: Canvas) {
|
override fun onDraw(canvas: Canvas) {
|
||||||
val textColor = textColors.defaultColor
|
textColorField.set(this, strokeColor)
|
||||||
textColorField.set(this, Color.BLACK)
|
|
||||||
paint.strokeWidth = 4f
|
paint.strokeWidth = 4f
|
||||||
paint.style = Paint.Style.STROKE
|
paint.style = Paint.Style.STROKE
|
||||||
super.onDraw(canvas)
|
super.onDraw(canvas)
|
||||||
|
|
||||||
textColorField.set(this, textColor)
|
textColorField.set(this, fillColor)
|
||||||
paint.strokeWidth = 0f
|
paint.strokeWidth = 0f
|
||||||
paint.style = Paint.Style.FILL
|
paint.style = Paint.Style.FILL
|
||||||
super.onDraw(canvas)
|
super.onDraw(canvas)
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:textColor="@color/md_white_1000"
|
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
Loading…
Reference in a new issue