Merge pull request #446 from jamal2362/themed_icons_bg_color
Change themed icon bg color in dark mode
This commit is contained in:
commit
99fb130710
@ -121,7 +121,11 @@ fun ShapedLauncherIcon(
|
|||||||
val renderSettings = LauncherIconRenderSettings(
|
val renderSettings = LauncherIconRenderSettings(
|
||||||
size = defaultIconSize.toPixels().toInt(),
|
size = defaultIconSize.toPixels().toInt(),
|
||||||
fgThemeColor = MaterialTheme.colorScheme.onPrimaryContainer.toArgb(),
|
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,
|
fgTone = if (LocalDarkTheme.current) 90 else 10,
|
||||||
bgTone = if (LocalDarkTheme.current) 30 else 90,
|
bgTone = if (LocalDarkTheme.current) 30 else 90,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user