|
@@ -115,7 +115,7 @@ fun ChangePassword(navHostController: NavHostController) {
|
|
|
// border = BorderStroke(25.dp, colorResource(id = R.color.black)),
|
|
|
colors = ButtonDefaults.buttonColors(
|
|
|
contentColor = colorResource(id = R.color.white),
|
|
|
- containerColor = colorResource(id = R.color.blue_text),
|
|
|
+ containerColor = MaterialTheme.colorScheme.onTertiaryContainer,
|
|
|
),
|
|
|
)
|
|
|
{
|
|
@@ -141,6 +141,10 @@ fun ColumnScope.TextFieldCurrPass() {
|
|
|
var passwordChanged by remember { mutableStateOf("") }
|
|
|
var passwordVisible by remember { mutableStateOf(false) }
|
|
|
|
|
|
+ val customTextStyle = MaterialTheme.typography.customTypography2.bodyMedium.copy(
|
|
|
+ MaterialTheme.colorScheme.tertiaryContainer
|
|
|
+ )
|
|
|
+
|
|
|
TextField(
|
|
|
value = passwordChanged,
|
|
|
onValueChange = {
|
|
@@ -148,7 +152,8 @@ fun ColumnScope.TextFieldCurrPass() {
|
|
|
passwordChanged = it
|
|
|
},
|
|
|
|
|
|
- textStyle = MaterialTheme.typography.customTypography2.bodyMedium,
|
|
|
+ textStyle = customTextStyle,
|
|
|
+
|
|
|
modifier = Modifier
|
|
|
.padding(start = 15.dp, end = 15.dp)
|
|
|
.align(Alignment.Start)
|
|
@@ -156,7 +161,7 @@ fun ColumnScope.TextFieldCurrPass() {
|
|
|
.height(60.dp)
|
|
|
.border(
|
|
|
1.dp,
|
|
|
- color = colorResource(id = R.color.white),
|
|
|
+ color = MaterialTheme.colorScheme.onBackground,
|
|
|
shape = RoundedCornerShape(16.dp)
|
|
|
)
|
|
|
.background(color = colorResource(id = R.color.transparent)),
|
|
@@ -169,7 +174,7 @@ fun ColumnScope.TextFieldCurrPass() {
|
|
|
label = {
|
|
|
Text(
|
|
|
text = "Current Password",
|
|
|
- color = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ color = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
style = MaterialTheme.typography.labelMedium
|
|
|
)
|
|
|
},
|
|
@@ -177,7 +182,7 @@ fun ColumnScope.TextFieldCurrPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
painter = painterResource(id = R.drawable.lock3x),
|
|
|
contentDescription = "Password Logo",
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp, 24.dp)
|
|
|
)
|
|
@@ -185,12 +190,12 @@ fun ColumnScope.TextFieldCurrPass() {
|
|
|
maxLines = 1,
|
|
|
colors = TextFieldDefaults.colors(
|
|
|
focusedLabelColor = Color.Blue,
|
|
|
- unfocusedContainerColor = colorResource(id = R.color.white),
|
|
|
- focusedContainerColor = colorResource(id = R.color.white),
|
|
|
+ unfocusedContainerColor = MaterialTheme.colorScheme.onBackground,
|
|
|
+ focusedContainerColor = MaterialTheme.colorScheme.onBackground,
|
|
|
focusedIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
disabledIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
unfocusedIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
- cursorColor = colorResource(id = R.color.dark_blue_gray_text)
|
|
|
+ cursorColor = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
),
|
|
|
keyboardOptions = KeyboardOptions(
|
|
|
keyboardType = KeyboardType.Password,
|
|
@@ -222,7 +227,7 @@ fun ColumnScope.TextFieldCurrPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
imageVector = Icons.Outlined.Visibility,
|
|
|
contentDescription = description,
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp)
|
|
|
.alpha(0.5F)
|
|
@@ -232,7 +237,7 @@ fun ColumnScope.TextFieldCurrPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
painter = painterResource(id = R.drawable.eye_slash3x),
|
|
|
contentDescription = description,
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp)
|
|
|
.alpha(0.5F)
|
|
@@ -250,6 +255,9 @@ fun ColumnScope.TextFieldNewPass() {
|
|
|
|
|
|
var passwordChanged by remember { mutableStateOf("") }
|
|
|
var passwordVisible by remember { mutableStateOf(false) }
|
|
|
+ val customTextStyle = MaterialTheme.typography.customTypography2.bodyMedium.copy(
|
|
|
+ MaterialTheme.colorScheme.tertiaryContainer
|
|
|
+ )
|
|
|
|
|
|
TextField(
|
|
|
value = passwordChanged,
|
|
@@ -258,10 +266,8 @@ fun ColumnScope.TextFieldNewPass() {
|
|
|
passwordChanged = it
|
|
|
},
|
|
|
|
|
|
- textStyle = TextStyle(
|
|
|
- fontSize = 20.sp,
|
|
|
- color = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
- ),
|
|
|
+ textStyle = customTextStyle,
|
|
|
+
|
|
|
modifier = Modifier
|
|
|
.padding(start = 15.dp, end = 15.dp)
|
|
|
.align(Alignment.Start)
|
|
@@ -269,7 +275,7 @@ fun ColumnScope.TextFieldNewPass() {
|
|
|
.height(60.dp)
|
|
|
.border(
|
|
|
1.dp,
|
|
|
- color = colorResource(id = R.color.white),
|
|
|
+ color = MaterialTheme.colorScheme.onBackground,
|
|
|
shape = RoundedCornerShape(16.dp)
|
|
|
)
|
|
|
.background(color = colorResource(id = R.color.transparent)),
|
|
@@ -282,7 +288,7 @@ fun ColumnScope.TextFieldNewPass() {
|
|
|
label = {
|
|
|
androidx.compose.material3.Text(text = "New Password",
|
|
|
style = TextStyle(
|
|
|
- colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
fontSize = 16.sp,
|
|
|
textAlign = TextAlign.Center
|
|
|
)
|
|
@@ -292,7 +298,7 @@ fun ColumnScope.TextFieldNewPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
painter = painterResource(id = R.drawable.lock3x),
|
|
|
contentDescription = "Password Logo",
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp, 24.dp)
|
|
|
)
|
|
@@ -300,12 +306,12 @@ fun ColumnScope.TextFieldNewPass() {
|
|
|
maxLines = 1,
|
|
|
colors = TextFieldDefaults.colors(
|
|
|
focusedLabelColor = Color.Blue,
|
|
|
- unfocusedContainerColor = colorResource(id = R.color.white),
|
|
|
- focusedContainerColor = colorResource(id = R.color.white),
|
|
|
+ unfocusedContainerColor = MaterialTheme.colorScheme.onBackground,
|
|
|
+ focusedContainerColor = MaterialTheme.colorScheme.onBackground,
|
|
|
focusedIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
disabledIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
unfocusedIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
- cursorColor = colorResource(id = R.color.dark_blue_gray_text)
|
|
|
+ cursorColor = MaterialTheme.colorScheme.tertiaryContainer
|
|
|
),
|
|
|
keyboardOptions = KeyboardOptions(
|
|
|
keyboardType = KeyboardType.Password,
|
|
@@ -337,7 +343,7 @@ fun ColumnScope.TextFieldNewPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
imageVector = Icons.Outlined.Visibility,
|
|
|
contentDescription = description,
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp)
|
|
|
.alpha(0.5F)
|
|
@@ -347,7 +353,7 @@ fun ColumnScope.TextFieldNewPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
painter = painterResource(id = R.drawable.eye_slash3x),
|
|
|
contentDescription = description,
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp)
|
|
|
.alpha(0.5F)
|
|
@@ -365,6 +371,9 @@ fun ColumnScope.TextFieldReWriteNewPass() {
|
|
|
|
|
|
var passwordChanged by remember { mutableStateOf("") }
|
|
|
var passwordVisible by remember { mutableStateOf(false) }
|
|
|
+ val customTextStyle = MaterialTheme.typography.customTypography2.bodyMedium.copy(
|
|
|
+ MaterialTheme.colorScheme.tertiaryContainer
|
|
|
+ )
|
|
|
|
|
|
TextField(
|
|
|
value = passwordChanged,
|
|
@@ -373,10 +382,7 @@ fun ColumnScope.TextFieldReWriteNewPass() {
|
|
|
passwordChanged = it
|
|
|
},
|
|
|
|
|
|
- textStyle = TextStyle(
|
|
|
- fontSize = 20.sp,
|
|
|
- color = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
- ),
|
|
|
+ textStyle = customTextStyle,
|
|
|
modifier = Modifier
|
|
|
.padding(start = 15.dp, end = 15.dp)
|
|
|
.align(Alignment.Start)
|
|
@@ -384,7 +390,7 @@ fun ColumnScope.TextFieldReWriteNewPass() {
|
|
|
.height(60.dp)
|
|
|
.border(
|
|
|
1.dp,
|
|
|
- color = colorResource(id = R.color.white),
|
|
|
+ color = MaterialTheme.colorScheme.onBackground,
|
|
|
shape = RoundedCornerShape(16.dp)
|
|
|
)
|
|
|
.background(color = colorResource(id = R.color.transparent)),
|
|
@@ -397,7 +403,7 @@ fun ColumnScope.TextFieldReWriteNewPass() {
|
|
|
label = {
|
|
|
androidx.compose.material3.Text(text = "Rewrite New Password",
|
|
|
style = TextStyle(
|
|
|
- colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
fontSize = 16.sp,
|
|
|
textAlign = TextAlign.Center
|
|
|
)
|
|
@@ -407,7 +413,7 @@ fun ColumnScope.TextFieldReWriteNewPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
painter = painterResource(id = R.drawable.lock3x),
|
|
|
contentDescription = "Password Logo",
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp, 24.dp)
|
|
|
)
|
|
@@ -415,12 +421,12 @@ fun ColumnScope.TextFieldReWriteNewPass() {
|
|
|
maxLines = 1,
|
|
|
colors = TextFieldDefaults.colors(
|
|
|
focusedLabelColor = Color.Blue,
|
|
|
- unfocusedContainerColor = colorResource(id = R.color.white),
|
|
|
- focusedContainerColor = colorResource(id = R.color.white),
|
|
|
+ unfocusedContainerColor = MaterialTheme.colorScheme.onBackground,
|
|
|
+ focusedContainerColor = MaterialTheme.colorScheme.onBackground,
|
|
|
focusedIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
disabledIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
unfocusedIndicatorColor = colorResource(id = R.color.transparent),
|
|
|
- cursorColor = colorResource(id = R.color.dark_blue_gray_text)
|
|
|
+ cursorColor = MaterialTheme.colorScheme.tertiaryContainer
|
|
|
),
|
|
|
keyboardOptions = KeyboardOptions(
|
|
|
keyboardType = KeyboardType.Password,
|
|
@@ -452,7 +458,7 @@ fun ColumnScope.TextFieldReWriteNewPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
imageVector = Icons.Outlined.Visibility,
|
|
|
contentDescription = description,
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp)
|
|
|
.alpha(0.5F)
|
|
@@ -462,7 +468,7 @@ fun ColumnScope.TextFieldReWriteNewPass() {
|
|
|
androidx.compose.material3.Icon(
|
|
|
painter = painterResource(id = R.drawable.eye_slash3x),
|
|
|
contentDescription = description,
|
|
|
- tint = colorResource(id = R.color.dark_blue_gray_text),
|
|
|
+ tint = MaterialTheme.colorScheme.tertiaryContainer,
|
|
|
modifier = Modifier
|
|
|
.size(24.dp)
|
|
|
.alpha(0.5F)
|