Merge pull request #446 from jamal2362/themed_icons_bg_color

Change themed icon bg color in dark mode
This commit is contained in:
U. N. Owen 2023-06-29 17:48:38 +02:00 committed by GitHub
commit 99fb130710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,11 @@ fun ShapedLauncherIcon(
val renderSettings = LauncherIconRenderSettings(
size = defaultIconSize.toPixels().toInt(),
fgThemeColor = MaterialTheme.colorScheme.onPrimaryContainer.toArgb(),
bgThemeColor = MaterialTheme.colorScheme.primaryContainer.toArgb(),
bgThemeColor = if (LocalDarkTheme.current) {
MaterialTheme.colorScheme.outlineVariant.toArgb()
} else {
MaterialTheme.colorScheme.primaryContainer.toArgb()
},
fgTone = if (LocalDarkTheme.current) 90 else 10,
bgTone = if (LocalDarkTheme.current) 30 else 90,
)