diff --git a/icons/src/main/java/de/mm20/launcher2/icons/providers/ThemedIconProvider.kt b/icons/src/main/java/de/mm20/launcher2/icons/providers/ThemedIconProvider.kt index 01eddfd1..5b941733 100644 --- a/icons/src/main/java/de/mm20/launcher2/icons/providers/ThemedIconProvider.kt +++ b/icons/src/main/java/de/mm20/launcher2/icons/providers/ThemedIconProvider.kt @@ -31,8 +31,8 @@ class ThemedIconProvider( context.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_YES != 0 val bgAttr = - if (isDarkMode) R.attr.colorOnPrimaryContainer else R.attr.colorPrimaryContainer - val fgAttr = if (isDarkMode) R.attr.colorOnSurfaceInverse else R.attr.colorOnSurfaceVariant + if (isDarkMode) R.attr.colorOnSurfaceInverse else R.attr.colorPrimaryContainer + val fgAttr = if (isDarkMode) R.attr.colorOnPrimaryContainer else R.attr.colorOnSurfaceVariant bgColor = theme.resolveAttribute(bgAttr, typedValue, true).let { typedValue.data } diff --git a/icons/src/main/java/de/mm20/launcher2/icons/providers/ThemedPlaceholderIconProvider.kt b/icons/src/main/java/de/mm20/launcher2/icons/providers/ThemedPlaceholderIconProvider.kt index 7dd873ff..20bb6e8d 100644 --- a/icons/src/main/java/de/mm20/launcher2/icons/providers/ThemedPlaceholderIconProvider.kt +++ b/icons/src/main/java/de/mm20/launcher2/icons/providers/ThemedPlaceholderIconProvider.kt @@ -22,8 +22,8 @@ class ThemedPlaceholderIconProvider( context.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_YES != 0 val bgAttr = - if (isDarkMode) R.attr.colorOnPrimaryContainer else R.attr.colorPrimaryContainer - val fgAttr = if (isDarkMode) R.attr.colorOnSurfaceInverse else R.attr.colorOnSurfaceVariant + if (isDarkMode) R.attr.colorOnSurfaceInverse else R.attr.colorPrimaryContainer + val fgAttr = if (isDarkMode) R.attr.colorOnPrimaryContainer else R.attr.colorOnSurfaceVariant bgColor = theme.resolveAttribute(bgAttr, typedValue, true).let { typedValue.data }