diff --git a/lawnchair/src/app/lawnchair/ui/theme/Color.kt b/lawnchair/src/app/lawnchair/ui/theme/Color.kt index fbb6e83c49..da4599c990 100644 --- a/lawnchair/src/app/lawnchair/ui/theme/Color.kt +++ b/lawnchair/src/app/lawnchair/ui/theme/Color.kt @@ -45,7 +45,8 @@ fun Context.getSystemAccent(darkTheme: Boolean): Int { res.getColor(colorId) } else { val typedValue = TypedValue() - val contextWrapper = ContextThemeWrapper(this, android.R.style.Theme_DeviceDefault_DayNight) + val theme = if (darkTheme) android.R.style.Theme_DeviceDefault else android.R.style.Theme_DeviceDefault_Light + val contextWrapper = ContextThemeWrapper(this, theme) contextWrapper.theme.resolveAttribute(android.R.attr.colorAccent, typedValue, true) typedValue.data }