Skip to content

Commit

Permalink
fix: update textStyle for dates
Browse files Browse the repository at this point in the history
  • Loading branch information
omerhabib26 committed Jan 30, 2024
1 parent f0a5061 commit 2a4efcb
Showing 1 changed file with 11 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,12 @@ import androidx.compose.ui.platform.ViewCompositionStrategy
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.pluralStringResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Devices
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import org.koin.android.ext.android.inject
Expand Down Expand Up @@ -380,13 +377,8 @@ fun ExpandableView(
) {
Text(
text = stringResource(id = sectionKey.stringResId),
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontWeight = FontWeight.SemiBold,
color = MaterialTheme.appColors.textDark,
letterSpacing = 0.15.sp,
),
style = MaterialTheme.appTypography.titleMedium,
color = MaterialTheme.appColors.textDark,
modifier = Modifier.fillMaxWidth()
)

Expand All @@ -397,13 +389,8 @@ fun ExpandableView(
count = sectionDates.size,
formatArgs = arrayOf(sectionDates.size)
),
style = TextStyle(
fontSize = 12.sp,
lineHeight = 16.sp,
fontWeight = FontWeight.Normal,
color = MaterialTheme.appColors.textDark,
letterSpacing = 0.5.sp,
),
style = MaterialTheme.appTypography.labelMedium,
color = MaterialTheme.appColors.textDark,
modifier = Modifier
.fillMaxWidth()
)
Expand Down Expand Up @@ -454,13 +441,8 @@ private fun CourseDateBlockSection(
.fillMaxWidth()
.padding(top = 16.dp, bottom = 4.dp),
text = stringResource(id = sectionKey.stringResId),
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontWeight = FontWeight.SemiBold,
color = MaterialTheme.appColors.textDark,
letterSpacing = 0.15.sp,
)
color = MaterialTheme.appColors.textDark,
style = MaterialTheme.appTypography.titleMedium,
)
}
Row(
Expand Down Expand Up @@ -546,13 +528,8 @@ private fun CourseDateItem(
}
Text(
text = timeTitle,
style = TextStyle(
fontSize = 12.sp,
lineHeight = 16.sp,
fontWeight = FontWeight.Normal,
color = MaterialTheme.appColors.textDark,
letterSpacing = 0.5.sp,
),
style = MaterialTheme.appTypography.labelMedium,
color = MaterialTheme.appColors.textDark,
maxLines = 1,
)
}
Expand Down Expand Up @@ -583,13 +560,8 @@ private fun CourseDateItem(
} else {
dateBlock.title
},
style = TextStyle(
fontSize = 16.sp,
lineHeight = 24.sp,
fontWeight = FontWeight.SemiBold,
color = MaterialTheme.appColors.textDark,
letterSpacing = 0.15.sp,
),
style = MaterialTheme.appTypography.titleMedium,
color = MaterialTheme.appColors.textDark,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Expand All @@ -612,13 +584,7 @@ private fun CourseDateItem(
.fillMaxWidth()
.padding(top = 4.dp),
text = dateBlock.description,
style = TextStyle(
fontSize = 11.sp,
lineHeight = 16.sp,
fontWeight = FontWeight.Normal,
color = MaterialTheme.appColors.textPrimaryVariant,
letterSpacing = 0.5.sp,
),
style = MaterialTheme.appTypography.labelMedium,
)
}
}
Expand Down

0 comments on commit 2a4efcb

Please sign in to comment.