|
|
@ -1,3 +1,5 @@ |
|
|
|
|
|
|
|
@file:Suppress("unused") |
|
|
|
|
|
|
|
|
|
|
|
package io.legado.app.utils |
|
|
|
package io.legado.app.utils |
|
|
|
|
|
|
|
|
|
|
|
import android.content.res.Resources |
|
|
|
import android.content.res.Resources |
|
|
@ -7,7 +9,6 @@ val Float.dp: Float |
|
|
|
android.util.TypedValue.COMPLEX_UNIT_DIP, this, Resources.getSystem().displayMetrics |
|
|
|
android.util.TypedValue.COMPLEX_UNIT_DIP, this, Resources.getSystem().displayMetrics |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val Float.sp: Float |
|
|
|
val Float.sp: Float |
|
|
|
get() = android.util.TypedValue.applyDimension( |
|
|
|
get() = android.util.TypedValue.applyDimension( |
|
|
|
android.util.TypedValue.COMPLEX_UNIT_SP, this, Resources.getSystem().displayMetrics |
|
|
|
android.util.TypedValue.COMPLEX_UNIT_SP, this, Resources.getSystem().displayMetrics |
|
|
|