Android判断当前是不是黑色主题
inline val Context.isDarkTheme: Boolean
get() = (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES
Android判断当前是不是黑色主题
inline val Context.isDarkTheme: Boolean
get() = (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES