Change button
parent
990840e943
commit
489c6f87e6
|
@ -5,11 +5,14 @@ import androidx.compose.material.Button
|
||||||
import androidx.compose.material.ButtonDefaults
|
import androidx.compose.material.ButtonDefaults
|
||||||
import androidx.compose.material.MaterialTheme
|
import androidx.compose.material.MaterialTheme
|
||||||
import androidx.compose.material.Text
|
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.runtime.*
|
||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
|
import main.component.buttonComponent
|
||||||
import main.component.dropdownButtonComponent
|
import main.component.dropdownButtonComponent
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
@ -109,15 +112,11 @@ fun choixLangagePage(
|
||||||
verticalArrangement = Arrangement.Bottom,
|
verticalArrangement = Arrangement.Bottom,
|
||||||
horizontalAlignment = Alignment.CenterHorizontally
|
horizontalAlignment = Alignment.CenterHorizontally
|
||||||
) {
|
) {
|
||||||
Button(
|
buttonComponent(
|
||||||
|
text = languageManager.getBackText(),
|
||||||
onClick = onBackClick,
|
onClick = onBackClick,
|
||||||
colors = ButtonDefaults.buttonColors(
|
icon = Icons.Filled.ArrowBack
|
||||||
backgroundColor = customRedColor,
|
)
|
||||||
contentColor = Color.White
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
Text(languageManager.getBackButtonText())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
dropdownButtonComponent(
|
dropdownButtonComponent(
|
||||||
languageManager = languageManager,
|
languageManager = languageManager,
|
||||||
|
|
Loading…
Reference in New Issue