登录页面字体调整

This commit is contained in:
2024-10-11 23:31:03 +08:00
parent ae4d87c5ab
commit 7bd3ea8f91
4 changed files with 15 additions and 6 deletions

View File

@@ -126,7 +126,7 @@ fun ChangePasswordScreen() {
modifier = Modifier
.width(345.dp)
.height(48.dp),
text = "LET'S RIDE".uppercase(),
text = "Let's Ride",
backgroundImage = R.mipmap.rider_pro_signup_red_bg
) {
if (validate()) {

View File

@@ -38,6 +38,7 @@ import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.input.KeyboardType
import androidx.compose.ui.text.input.PasswordVisualTransformation
import androidx.compose.ui.text.input.VisualTransformation
import androidx.compose.ui.text.style.TextIndent
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.aiosman.riderpro.R
@@ -92,7 +93,7 @@ fun TextInputField(
),
visualTransformation = if (showPassword) VisualTransformation.None else PasswordVisualTransformation(),
singleLine = true,
enabled = enabled
enabled = enabled,
)
if (password) {
Image(
@@ -110,7 +111,7 @@ fun TextInputField(
if (text.isEmpty()) {
hint?.let {
Text(it, color = Color(0xffdadada), fontWeight = FontWeight.W600)
Text(it, modifier = Modifier.padding(start = 5.dp), color = Color(0xffdadada), fontWeight = FontWeight.W600)
}
}
}

View File

@@ -27,6 +27,8 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.aiosman.riderpro.AppState
@@ -258,7 +260,10 @@ fun UserAuthScreen() {
Text(
stringResource(R.string.remember_me),
modifier = Modifier.padding(start = 8.dp),
fontSize = 12.sp
fontSize = 12.sp,
style = TextStyle(
fontWeight = FontWeight.W500
)
)
Spacer(modifier = Modifier.weight(1f))
Text(
@@ -266,7 +271,10 @@ fun UserAuthScreen() {
fontSize = 12.sp,
modifier = Modifier.noRippleClickable {
navController.navigate(NavigationRoute.ResetPassword.route)
}
},
style = TextStyle(
fontWeight = FontWeight.W500
)
)
}

View File

@@ -18,7 +18,7 @@
<string name="post_comment_hint">Say something...</string>
<string name="follow_upper">FOLLOW</string>
<string name="login_upper">Log in</string>
<string name="lets_ride_upper">LET\'S RIDE</string>
<string name="lets_ride_upper">Let\'s Ride</string>
<string name="or_login_with">or login with</string>
<string name="remember_me">Remember me.</string>
<string name="forgot_password">Forgot password?</string>