From 489c6f87e6144e9f2eaf311d51356a25b1ef0818 Mon Sep 17 00:00:00 2001 From: CAPEL Maxime <83071634+fortyup@users.noreply.github.com> Date: Thu, 18 Jan 2024 13:49:15 +0100 Subject: [PATCH] Change button --- src/main/kotlin/main/Verify.kt | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/main/Verify.kt b/src/main/kotlin/main/Verify.kt index 041fd87..6fe68a0 100644 --- a/src/main/kotlin/main/Verify.kt +++ b/src/main/kotlin/main/Verify.kt @@ -5,11 +5,14 @@ import androidx.compose.material.Button import androidx.compose.material.ButtonDefaults import androidx.compose.material.MaterialTheme import androidx.compose.material.Text +import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.ArrowBack import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp +import main.component.buttonComponent import main.component.dropdownButtonComponent @Composable @@ -109,15 +112,11 @@ fun choixLangagePage( verticalArrangement = Arrangement.Bottom, horizontalAlignment = Alignment.CenterHorizontally ) { - Button( + buttonComponent( + text = languageManager.getBackText(), onClick = onBackClick, - colors = ButtonDefaults.buttonColors( - backgroundColor = customRedColor, - contentColor = Color.White - ) - ) { - Text(languageManager.getBackButtonText()) - } + icon = Icons.Filled.ArrowBack + ) } dropdownButtonComponent( languageManager = languageManager,