Skip to content

Commit

Permalink
Prefer param color and then LocalComposition Color
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Feb 13, 2025
1 parent 071d725 commit 82da464
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ fun Text(
) {
val contentAlpha = LocalContentAlpha.current
val textStyle = style.merge(LocalTextStyle.current)
val textColor: Color = LocalTextColor.current
.takeIf { it != Color.Unspecified } ?: color ?: KrailTheme.colors.onSurface
val textColor: Color = color ?: LocalTextColor.current
.takeIf { it != Color.Unspecified } ?: KrailTheme.colors.onSurface

BasicText(
text = text,
Expand Down

0 comments on commit 82da464

Please sign in to comment.