Skip to content

Commit

Permalink
Set default text color to content.minor
Browse files Browse the repository at this point in the history
  • Loading branch information
yasanglass committed Dec 18, 2023
1 parent d508e10 commit f4ef52e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.TextUnit
import glass.yasan.spine.compose.type.rubikFamily
import glass.yasan.stillbirth.theme.StillbirthTheme
import androidx.compose.material3.Text as Material3Text

@Composable
public fun Text(
text: String,
color: Color,
modifier: Modifier = Modifier,
color: Color = StillbirthTheme.colors.content.minor,
fontSize: TextUnit = TextUnit.Unspecified,
fontStyle: FontStyle? = null,
fontWeight: FontWeight? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.TextUnit
import glass.yasan.spine.compose.type.rubikMonoFamily
import glass.yasan.stillbirth.theme.StillbirthTheme

@Composable
public fun TextMono(
text: String,
color: Color,
modifier: Modifier = Modifier,
color: Color = StillbirthTheme.colors.content.minor,
fontSize: TextUnit = TextUnit.Unspecified,
fontStyle: FontStyle? = null,
fontWeight: FontWeight? = null,
Expand Down

0 comments on commit f4ef52e

Please sign in to comment.