Change themed icon bg color in dark mode
This commit is contained in:
parent
191bdf5d71
commit
3f3f001cd5
@ -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,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user