Skip to content

Commit

Permalink
Use M3Theme for all previews
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Oct 18, 2024
1 parent 0026d9a commit d93394b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.sp
import org.wordpress.android.R
import org.wordpress.android.ui.accounts.login.LocalPosition
import org.wordpress.android.ui.compose.theme.AppTheme
import org.wordpress.android.ui.compose.theme.M3Theme
import org.wordpress.android.util.extensions.isOdd

private const val FIXED_FONT_SIZE = 40
Expand Down Expand Up @@ -72,7 +72,7 @@ fun LoopingText(modifier: Modifier = Modifier) {
@Preview(showBackground = true, device = Devices.PIXEL_4, uiMode = Configuration.UI_MODE_NIGHT_YES)
@Composable
fun PreviewLoopingText() {
AppTheme {
M3Theme {
LoopingText()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import androidx.compose.ui.semantics.clearAndSetSemantics
import androidx.compose.ui.tooling.preview.Devices
import androidx.compose.ui.tooling.preview.Preview
import org.wordpress.android.R
import org.wordpress.android.ui.compose.theme.AppTheme
import org.wordpress.android.ui.compose.theme.M3Theme

@Composable
fun LoopingTextWithBackground(
Expand Down Expand Up @@ -46,7 +46,7 @@ fun LoopingTextWithBackground(
@Preview(showBackground = true, device = Devices.PIXEL_4_XL, uiMode = Configuration.UI_MODE_NIGHT_YES)
@Composable
fun PreviewLoopingTextWithBackground() {
AppTheme {
M3Theme {
LoopingTextWithBackground()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Devices
import androidx.compose.ui.tooling.preview.Preview
import org.wordpress.android.R
import org.wordpress.android.ui.compose.theme.AppTheme
import org.wordpress.android.ui.compose.theme.M3Theme

@Composable
fun TopLinearGradient(modifier: Modifier = Modifier) {
Expand All @@ -29,7 +29,7 @@ fun TopLinearGradient(modifier: Modifier = Modifier) {
@Preview(device = Devices.PIXEL_4_XL, uiMode = Configuration.UI_MODE_NIGHT_YES)
@Composable
private fun PreviewTopLinearGradient() {
AppTheme {
M3Theme {
TopLinearGradient()
}
}

0 comments on commit d93394b

Please sign in to comment.