Change button

main
CAPEL Maxime 2024-01-18 13:49:15 +01:00
parent 990840e943
commit 489c6f87e6
1 changed files with 7 additions and 8 deletions

View File

@ -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,