diff --git a/core/src/main/java/com/orange/ouds/core/component/contrastedsurface/OudsContrastedSurface.kt b/core/src/main/java/com/orange/ouds/core/component/coloredbox/OudsColoredBox.kt similarity index 67% rename from core/src/main/java/com/orange/ouds/core/component/contrastedsurface/OudsContrastedSurface.kt rename to core/src/main/java/com/orange/ouds/core/component/coloredbox/OudsColoredBox.kt index da35d9f3..a000d9ef 100644 --- a/core/src/main/java/com/orange/ouds/core/component/contrastedsurface/OudsContrastedSurface.kt +++ b/core/src/main/java/com/orange/ouds/core/component/coloredbox/OudsColoredBox.kt @@ -10,21 +10,22 @@ * Software description: Android library of reusable graphical components */ -package com.orange.ouds.core.component.contrastedsurface +package com.orange.ouds.core.component.coloredbox +import androidx.compose.foundation.background import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.BoxScope import androidx.compose.foundation.layout.padding -import androidx.compose.material3.Surface +import androidx.compose.material3.LocalContentColor import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color -import androidx.compose.ui.graphics.RectangleShape -import androidx.compose.ui.graphics.Shape import androidx.compose.ui.tooling.preview.PreviewParameter import com.orange.ouds.core.component.button.OudsButton -import com.orange.ouds.core.theme.LocalContrastedSurface +import com.orange.ouds.core.theme.LocalColoredBox import com.orange.ouds.core.theme.value import com.orange.ouds.core.utilities.OudsPreview import com.orange.ouds.foundation.utilities.BasicPreviewParameterProvider @@ -33,29 +34,34 @@ import com.orange.ouds.theme.tokens.OudsColorKeyToken import com.orange.ouds.theme.tokens.OudsSpaceKeyToken /** - * An OUDS colored surface is a [Surface] where content color is automatically adjusted to maximize the contrast with the chosen background [color]. + * An OUDS colored box is a [Box] where content color is automatically adjusted to maximize the contrast with the chosen background [color]. * * Moreover, the colors of several OUDS components (for instance [OudsButton]) are also automatically adjusted. * Some tokens associated with these colors can be customized and are identified with the `Mono` suffix (for instance `colorBgDefaultEnabledMono` in `OudsButtonTokens`). * @param color The background color. - * @param modifier Modifier to be applied to the layout corresponding to the colored surface. - * @param shape Defines the surface's shape as well its shadow. - * @param content The content of this colored surface. + * @param modifier Modifier to be applied to the layout corresponding to the colored box. + * @param content The content of this colored box. */ @Composable -fun OudsContrastedSurface( +fun OudsColoredBox( color: OudsColorKeyToken.Surface, modifier: Modifier = Modifier, - shape: Shape = RectangleShape, - content: @Composable () -> Unit + content: @Composable BoxScope.() -> Unit ) { - CompositionLocalProvider(LocalContrastedSurface provides color) { - Surface( - modifier = modifier, - shape = shape, - color = color.value, - contentColor = contentColorFor(color), + CompositionLocalProvider( + LocalContentColor provides contentColorFor(color), + LocalColoredBox provides true + ) { + // Filter the background modifiers in order to force the background color + // We could theoretically apply the background color after the modifier but in practise a hairline is still visible + val filteredModifier = modifier.foldIn(Modifier) { result, element -> + if (element::class.simpleName != "BackgroundElement") result.then(element) else result + } + Box( + modifier = Modifier + .background(color.value) // Set the background color first, otherwise padding (if any) is wrongly applied + .then(filteredModifier), content = content ) } @@ -83,13 +89,13 @@ private fun contentColorFor(color: OudsColorKeyToken.Surface): Color { @Suppress("PreviewShouldNotBeCalledRecursively") @UiModePreviews.Default @Composable -private fun PreviewOudsContrastedSurface(@PreviewParameter(OudsContrastedSurfacePreviewParameterProvider::class) parameter: OudsColorKeyToken.Surface) { - PreviewOudsContrastedSurface(darkThemeEnabled = isSystemInDarkTheme(), parameter = parameter) +private fun PreviewOudsColoredBox(@PreviewParameter(OudsColoredBoxPreviewParameterProvider::class) parameter: OudsColorKeyToken.Surface) { + PreviewOudsColoredBox(darkThemeEnabled = isSystemInDarkTheme(), parameter = parameter) } @Composable -internal fun PreviewOudsContrastedSurface(darkThemeEnabled: Boolean, parameter: OudsColorKeyToken.Surface) = OudsPreview(darkThemeEnabled = darkThemeEnabled) { - OudsContrastedSurface(color = parameter) { +internal fun PreviewOudsColoredBox(darkThemeEnabled: Boolean, parameter: OudsColorKeyToken.Surface) = OudsPreview(darkThemeEnabled = darkThemeEnabled) { + OudsColoredBox(color = parameter) { Text( modifier = Modifier.padding(all = OudsSpaceKeyToken.Fixed.Medium.value), text = parameter.name.removePrefix("OudsColorKeyToken."), @@ -97,7 +103,7 @@ internal fun PreviewOudsContrastedSurface(darkThemeEnabled: Boolean, parameter: } } -internal class OudsContrastedSurfacePreviewParameterProvider : BasicPreviewParameterProvider(*previewParameterValues.toTypedArray()) +internal class OudsColoredBoxPreviewParameterProvider : BasicPreviewParameterProvider(*previewParameterValues.toTypedArray()) private val previewParameterValues: List get() = listOf( diff --git a/core/src/main/java/com/orange/ouds/core/theme/OudsTheme.kt b/core/src/main/java/com/orange/ouds/core/theme/OudsTheme.kt index 3c59a974..42238243 100644 --- a/core/src/main/java/com/orange/ouds/core/theme/OudsTheme.kt +++ b/core/src/main/java/com/orange/ouds/core/theme/OudsTheme.kt @@ -21,7 +21,6 @@ import androidx.compose.runtime.ReadOnlyComposable import androidx.compose.runtime.compositionLocalOf import androidx.compose.runtime.staticCompositionLocalOf import com.orange.ouds.theme.OudsThemeContract -import com.orange.ouds.theme.tokens.OudsColorKeyToken import com.orange.ouds.theme.tokens.components.OudsComponentsTokens private fun missingCompositionLocalError(compositionLocalName: String): Nothing = @@ -41,7 +40,7 @@ private val LocalOpacities = staticCompositionLocalOf { missingCo private val LocalSizes = staticCompositionLocalOf { missingCompositionLocalError("LocalSizes") } private val LocalSpaces = staticCompositionLocalOf { missingCompositionLocalError("LocalSpaces") } private val LocalComponentsTokens = staticCompositionLocalOf { missingCompositionLocalError("LocalComponentsTokens") } -internal val LocalContrastedSurface = staticCompositionLocalOf { null } +internal val LocalColoredBox = staticCompositionLocalOf { false } object OudsTheme { diff --git a/core/src/test/java/com/orange/ouds/core/component/contrastedsurface/OudsContrastedSurfaceTest.kt b/core/src/test/java/com/orange/ouds/core/component/coloredbox/OudsColoredBoxTest.kt similarity index 72% rename from core/src/test/java/com/orange/ouds/core/component/contrastedsurface/OudsContrastedSurfaceTest.kt rename to core/src/test/java/com/orange/ouds/core/component/coloredbox/OudsColoredBoxTest.kt index 5d234a83..53164b6c 100644 --- a/core/src/test/java/com/orange/ouds/core/component/contrastedsurface/OudsContrastedSurfaceTest.kt +++ b/core/src/test/java/com/orange/ouds/core/component/coloredbox/OudsColoredBoxTest.kt @@ -10,7 +10,7 @@ * Software description: Android library of reusable graphical components */ -package com.orange.ouds.core.component.contrastedsurface +package com.orange.ouds.core.component.coloredbox import app.cash.paparazzi.Paparazzi import com.android.ide.common.rendering.api.SessionParams @@ -21,21 +21,21 @@ import org.junit.runner.RunWith import org.junit.runners.Parameterized @RunWith(Parameterized::class) -internal class OudsContrastedSurfaceTest(private val parameter: OudsColorKeyToken.Surface) { +internal class OudsColoredBoxTest(private val parameter: OudsColorKeyToken.Surface) { companion object { @JvmStatic @Parameterized.Parameters - internal fun data() = OudsContrastedSurfacePreviewParameterProvider().values.toList() + internal fun data() = OudsColoredBoxPreviewParameterProvider().values.toList() } @get:Rule val paparazzi = Paparazzi(renderingMode = SessionParams.RenderingMode.SHRINK, maxPercentDifference = 0.0) @Test - fun takeOudsContrastedSurfaceLightThemeSnapshot() { + fun takeOudsColoredBoxLightThemeSnapshot() { paparazzi.snapshot { - PreviewOudsContrastedSurface( + PreviewOudsColoredBox( darkThemeEnabled = false, parameter = parameter ) @@ -43,9 +43,9 @@ internal class OudsContrastedSurfaceTest(private val parameter: OudsColorKeyToke } @Test - fun takeOudsContrastedSurfaceDarkThemeSnapshot() { + fun takeOudsColoredBoxDarkThemeSnapshot() { paparazzi.snapshot { - PreviewOudsContrastedSurface( + PreviewOudsColoredBox( darkThemeEnabled = true, parameter = parameter ) diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[0].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[0].png new file mode 100644 index 00000000..add825e2 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[0].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[10].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[10].png new file mode 100644 index 00000000..36f26d9c Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[10].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[11].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[11].png new file mode 100644 index 00000000..c1805b28 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[11].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[12].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[12].png new file mode 100644 index 00000000..321d74c2 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[12].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[1].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[1].png new file mode 100644 index 00000000..dc1b32aa Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[1].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[2].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[2].png new file mode 100644 index 00000000..6238d424 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[2].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[3].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[3].png new file mode 100644 index 00000000..d336fe85 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[3].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[4].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[4].png new file mode 100644 index 00000000..72228dc2 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[4].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[5].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[5].png new file mode 100644 index 00000000..4b36c9c2 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[5].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[6].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[6].png new file mode 100644 index 00000000..478a60a9 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[6].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[7].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[7].png new file mode 100644 index 00000000..a834cf89 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[7].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[8].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[8].png new file mode 100644 index 00000000..51e853ef Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[8].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[9].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[9].png new file mode 100644 index 00000000..a95b3dc1 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxDarkThemeSnapshot[9].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[0].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[0].png new file mode 100644 index 00000000..add825e2 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[0].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[10].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[10].png new file mode 100644 index 00000000..cb6ce09f Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[10].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[11].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[11].png new file mode 100644 index 00000000..e8d79e0a Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[11].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[12].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[12].png new file mode 100644 index 00000000..9a998ba5 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[12].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[1].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[1].png new file mode 100644 index 00000000..a5c46a4b Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[1].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[2].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[2].png new file mode 100644 index 00000000..f6ce4d3a Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[2].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[3].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[3].png new file mode 100644 index 00000000..d370cb61 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[3].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[4].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[4].png new file mode 100644 index 00000000..356b5e21 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[4].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[5].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[5].png new file mode 100644 index 00000000..fe4fb4a2 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[5].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[6].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[6].png new file mode 100644 index 00000000..6e1c452c Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[6].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[7].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[7].png new file mode 100644 index 00000000..7760eda4 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[7].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[8].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[8].png new file mode 100644 index 00000000..b7bd3f61 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[8].png differ diff --git a/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[9].png b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[9].png new file mode 100644 index 00000000..d6a58447 Binary files /dev/null and b/core/src/test/snapshots/images/com.orange.ouds.core.component.coloredsurface_OudsColoredBoxTest_takeOudsColoredBoxLightThemeSnapshot[9].png differ