mirror of
https://github.com/fankes/MIUINativeNotifyIcon.git
synced 2025-09-06 02:35:32 +08:00
Merge code
This commit is contained in:
@@ -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 }
|
||||
|
||||
/**
|
||||
* 是否为白色
|
||||
|
Reference in New Issue
Block a user