Skip to content

Commit

Permalink
fixed test theme
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Nov 22, 2024
1 parent f6581bd commit 5e0b11c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.remember
import com.wire.android.ui.common.snackbar.LocalSnackbarHostState
import com.wire.android.ui.theme.DefaultWireFixedColorScheme
import com.wire.android.ui.theme.WireColorScheme
import com.wire.android.ui.theme.WireColorSchemeTypes
import com.wire.android.ui.theme.WireDimensions
import com.wire.android.ui.theme.WireDimensionsTypes
import com.wire.android.ui.theme.WireFixedColorScheme
import com.wire.android.ui.theme.WireTheme
import com.wire.android.ui.theme.WireTypography
import com.wire.android.ui.theme.WireTypographyTypes

@Composable
fun WireTestTheme(
wireColorScheme: WireColorScheme = WireColorSchemeTypes.currentTheme,
wireFixedColorScheme: WireFixedColorScheme = DefaultWireFixedColorScheme,
wireTypography: WireTypography = WireTypographyTypes.currentScreenSize,
wireDimensions: WireDimensions = WireDimensionsTypes.currentScreenSize.currentOrientation,
content: @Composable () -> Unit
Expand All @@ -41,6 +44,7 @@ fun WireTestTheme(
CompositionLocalProvider(LocalSnackbarHostState provides snackbarHostState) {
WireTheme(
wireColorScheme,
wireFixedColorScheme,
wireTypography,
wireDimensions,
content
Expand Down

0 comments on commit 5e0b11c

Please sign in to comment.