Merge code

This commit is contained in:
2022-03-23 14:48:07 +08:00
parent 12ce701334
commit abd7546dfe

View File

@@ -272,9 +272,7 @@ fun Number.dpFloat(context: Context) = toFloat() * context.resources.displayMetr
* @return [Int] Android < 12 返回透明色
*/
val Context.systemAccentColor
get() = safeOfNan {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) resources.getColor(android.R.color.system_accent1_600) else 0
}
get() = safeOfNan { if (isUpperOfAndroidS) resources.getColor(android.R.color.system_accent1_600) else 0 }
/**
* 是否为白色