|
@@ -147,7 +147,7 @@ fun AccountTV(navHostController: NavHostController,
|
|
) {
|
|
) {
|
|
// Spacer(modifier = Modifier.height(50.dp))
|
|
// Spacer(modifier = Modifier.height(50.dp))
|
|
AddTextAccountTV(
|
|
AddTextAccountTV(
|
|
- text = "Account",
|
|
|
|
|
|
+ text = context.getString(R.string.account),
|
|
size = 28.sp,
|
|
size = 28.sp,
|
|
color = MaterialTheme.colorScheme.primary
|
|
color = MaterialTheme.colorScheme.primary
|
|
)
|
|
)
|
|
@@ -178,7 +178,7 @@ fun AccountTV(navHostController: NavHostController,
|
|
// )
|
|
// )
|
|
AddRowAccountIconTV(
|
|
AddRowAccountIconTV(
|
|
icon = painterResource(id = R.drawable.fav3x),
|
|
icon = painterResource(id = R.drawable.fav3x),
|
|
- text = "Favorite Servers",
|
|
|
|
|
|
+ text = context.getString(R.string.favorite_servers),
|
|
onClick = {
|
|
onClick = {
|
|
navHostController.navigate(
|
|
navHostController.navigate(
|
|
ScreenTV.FavoriteTV.route
|
|
ScreenTV.FavoriteTV.route
|
|
@@ -205,7 +205,7 @@ fun AccountTV(navHostController: NavHostController,
|
|
// )
|
|
// )
|
|
AddRowAccountIconTV(
|
|
AddRowAccountIconTV(
|
|
icon = painterResource(id = R.drawable.logout3x),
|
|
icon = painterResource(id = R.drawable.logout3x),
|
|
- text = "Logout",
|
|
|
|
|
|
+ text = context.getString(R.string.logout),
|
|
onClick = {
|
|
onClick = {
|
|
isLoggedOut = true
|
|
isLoggedOut = true
|
|
Log.d("islogoutClicked?", "Yes")
|
|
Log.d("islogoutClicked?", "Yes")
|
|
@@ -224,8 +224,9 @@ fun AccountTV(navHostController: NavHostController,
|
|
.fillMaxWidth()
|
|
.fillMaxWidth()
|
|
.height(228.dp)
|
|
.height(228.dp)
|
|
) {
|
|
) {
|
|
- LogoutDialogTV("Logout Account",
|
|
|
|
- "Are you sure to logout the account?",
|
|
|
|
|
|
+ LogoutDialogTV(
|
|
|
|
+ context.getString(R.string.logout_account),
|
|
|
|
+ context.getString(R.string.sure_logout_account),
|
|
onCancel = {
|
|
onCancel = {
|
|
isLoggedOut = false
|
|
isLoggedOut = false
|
|
},
|
|
},
|
|
@@ -652,7 +653,7 @@ fun BoxScope.LogoutDialogTV(
|
|
border = BorderStroke(2.dp, if (isButtonFocused1) MaterialTheme.colorScheme.primary else colorResource(id = R.color.light_blue))
|
|
border = BorderStroke(2.dp, if (isButtonFocused1) MaterialTheme.colorScheme.primary else colorResource(id = R.color.light_blue))
|
|
)
|
|
)
|
|
{
|
|
{
|
|
- Text(text = "No",
|
|
|
|
|
|
+ Text(text = context.getString(R.string.no),
|
|
style = MaterialTheme.typography.labelLarge)
|
|
style = MaterialTheme.typography.labelLarge)
|
|
Log.d("test_button", "RowScope")
|
|
Log.d("test_button", "RowScope")
|
|
}
|
|
}
|
|
@@ -710,7 +711,7 @@ fun BoxScope.LogoutDialogTV(
|
|
// colorResource(id = R.color.gray_icon))
|
|
// colorResource(id = R.color.gray_icon))
|
|
)
|
|
)
|
|
{
|
|
{
|
|
- Text(text = "Yes",
|
|
|
|
|
|
+ Text(text = context.getString(R.string.yes),
|
|
style = MaterialTheme.typography.labelLarge)
|
|
style = MaterialTheme.typography.labelLarge)
|
|
Log.d("test_button", "RowScope")
|
|
Log.d("test_button", "RowScope")
|
|
|
|
|