From e2b0030768b9cf2c5f4166ac9eef9bd696c00df1 Mon Sep 17 00:00:00 2001 From: Mihai-Cristian Condrea Date: Mon, 15 Jul 2024 16:20:53 +0300 Subject: [PATCH] Fixed the colors --- .../plus/utils/drawable/HomeBanner.kt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/src/main/kotlin/com/d4rk/englishwithlidia/plus/utils/drawable/HomeBanner.kt b/app/src/main/kotlin/com/d4rk/englishwithlidia/plus/utils/drawable/HomeBanner.kt index e79d13b..932585f 100644 --- a/app/src/main/kotlin/com/d4rk/englishwithlidia/plus/utils/drawable/HomeBanner.kt +++ b/app/src/main/kotlin/com/d4rk/englishwithlidia/plus/utils/drawable/HomeBanner.kt @@ -14,14 +14,15 @@ import androidx.compose.ui.unit.dp @Composable -fun homeBanner(): ImageVector { - val colorSecondaryContainer = MaterialTheme.colorScheme.secondaryContainer - val colorPrimaryContainer = MaterialTheme.colorScheme.primaryContainer - val colorOnSecondary = MaterialTheme.colorScheme.onSecondary - val colorOnPrimary = MaterialTheme.colorScheme.onPrimary - val colorTertiary = MaterialTheme.colorScheme.tertiary - val colorPrimary = MaterialTheme.colorScheme.primary - return remember { +fun homeBanner( + colorPrimary: Color = MaterialTheme.colorScheme.primary, + colorTertiary: Color = MaterialTheme.colorScheme.tertiary, + colorSecondaryContainer: Color = MaterialTheme.colorScheme.secondaryContainer, + colorPrimaryContainer: Color = MaterialTheme.colorScheme.primaryContainer, + colorOnSecondary: Color = MaterialTheme.colorScheme.onSecondary, + colorOnPrimary: Color = MaterialTheme.colorScheme.onPrimary +): ImageVector { + return remember(colorPrimary, colorTertiary, colorSecondaryContainer, colorPrimaryContainer, colorOnSecondary, colorOnPrimary) { ImageVector.Builder( name = "Home Banner", defaultWidth = 640.dp,