mirror of
https://github.com/tateisu/SubwayTooter
synced 2024-12-23 15:48:17 +01:00
refactor
This commit is contained in:
parent
e785238af6
commit
42b3d3216f
@ -12,7 +12,6 @@ import android.content.res.ColorStateList
|
|||||||
import android.database.sqlite.SQLiteDatabase
|
import android.database.sqlite.SQLiteDatabase
|
||||||
import android.database.sqlite.SQLiteOpenHelper
|
import android.database.sqlite.SQLiteOpenHelper
|
||||||
import android.graphics.Color
|
import android.graphics.Color
|
||||||
import android.graphics.PorterDuff
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
@ -825,7 +824,7 @@ class App1 : Application() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun mixColor(col1 : Int, col2 : Int) : Int = Color.rgb(
|
private fun mixColor(col1 : Int, col2 : Int) : Int = Color.rgb(
|
||||||
(Color.red(col1) + Color.red(col2)) ushr 1,
|
(Color.red(col1) + Color.red(col2)) ushr 1,
|
||||||
(Color.green(col1) + Color.green(col2)) ushr 1,
|
(Color.green(col1) + Color.green(col2)) ushr 1,
|
||||||
(Color.blue(col1) + Color.blue(col2)) ushr 1
|
(Color.blue(col1) + Color.blue(col2)) ushr 1
|
||||||
|
Loading…
Reference in New Issue
Block a user