Skip to content

Commit

Permalink
Set default text style for Text composables
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Jul 25, 2024
1 parent 4485154 commit b11e98f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package com.infomaniak.swisstransfer.ui.theme

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
Expand All @@ -45,7 +46,10 @@ fun SwissTransferTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
content: @Composable () -> Unit,
) {
CompositionLocalProvider(LocalCustomTypography provides Typography) {
CompositionLocalProvider(
LocalCustomTypography provides Typography,
LocalTextStyle provides SwissTransferTheme.typography.bodyRegular,
) {
MaterialTheme(
colorScheme = if (darkTheme) DarkColorScheme else LightColorScheme,
shapes = Shapes,
Expand Down

0 comments on commit b11e98f

Please sign in to comment.