Skip to content

Commit

Permalink
chore: UI Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaIsrar12 committed Jul 4, 2024
1 parent c0df439 commit fb68cff
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.text.style.TextOverflow
Expand Down Expand Up @@ -563,6 +564,11 @@ fun VideoSubtitles(
} else {
MaterialTheme.appColors.textFieldBorder
}
val fontWeight = if (currentIndex == index) {
FontWeight.SemiBold
} else {
FontWeight.Normal
}
Text(
modifier = Modifier
.fillMaxWidth()
Expand All @@ -571,7 +577,8 @@ fun VideoSubtitles(
},
text = Jsoup.parse(item.content).text(),
color = textColor,
style = MaterialTheme.appTypography.bodyMedium
style = MaterialTheme.appTypography.bodyMedium,
fontWeight = fontWeight,
)
Spacer(Modifier.height(16.dp))
}
Expand Down

0 comments on commit fb68cff

Please sign in to comment.