Skip to content

Commit

Permalink
[fluent] update Typography.caption font weight that aligned WinUI f…
Browse files Browse the repository at this point in the history
…igma design file.
  • Loading branch information
Sanlorng committed May 21, 2024
1 parent f6e9910 commit 1e38a65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import androidx.compose.ui.unit.sp
internal val LocalTypography = staticCompositionLocalOf {
Typography(
caption = TextStyle(
fontWeight = FontWeight.Light,
fontWeight = FontWeight.Normal,
fontSize = 12.sp, lineHeight = 16.sp
),
body = TextStyle(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ fun MenuFlyoutScope.MenuFlyoutItem(
CompositionLocalProvider(
LocalContentColor provides color.trainingColor,
LocalContentAlpha provides color.trainingColor.alpha,
LocalTextStyle provides FluentTheme.typography.caption.copy(fontWeight = FontWeight.Normal)
LocalTextStyle provides FluentTheme.typography.caption
) {
training?.invoke()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ fun RatingControl(
})
}
ProvideTextStyle(
FluentTheme.typography.caption.copy(color.captionColor, fontWeight = FontWeight.Normal)
FluentTheme.typography.caption.copy(color.captionColor)
) {
CompositionLocalProvider(
LocalContentColor provides color.captionColor
Expand Down

0 comments on commit 1e38a65

Please sign in to comment.