@@ -54,7 +54,6 @@ import com.example.jetnews.ui.AppDrawer
54
54
import com.example.jetnews.ui.JetnewsStatus
55
55
import com.example.jetnews.ui.Screen
56
56
import com.example.jetnews.ui.ThemedPreview
57
- import com.example.jetnews.ui.darkThemeColors
58
57
import com.example.jetnews.ui.state.UiState
59
58
import com.example.jetnews.ui.state.previewDataFrom
60
59
import com.example.jetnews.ui.state.uiStateFrom
@@ -270,7 +269,7 @@ fun PreviewInterestsScreen() {
270
269
@Preview(" Interests screen dark theme" )
271
270
@Composable
272
271
fun PreviewInterestsScreenDark () {
273
- ThemedPreview (darkThemeColors ) {
272
+ ThemedPreview (darkTheme = true ) {
274
273
InterestsScreen (
275
274
scaffoldState = ScaffoldState (drawerState = DrawerState .Opened ),
276
275
interestsRepository = FakeInterestsRepository ()
@@ -292,7 +291,7 @@ private fun PreviewDrawerOpen() {
292
291
@Preview(" Interests screen drawer open dark theme" )
293
292
@Composable
294
293
private fun PreviewDrawerOpenDark () {
295
- ThemedPreview (darkThemeColors ) {
294
+ ThemedPreview (darkTheme = true ) {
296
295
InterestsScreen (
297
296
scaffoldState = ScaffoldState (drawerState = DrawerState .Opened ),
298
297
interestsRepository = FakeInterestsRepository ()
@@ -311,7 +310,7 @@ fun PreviewTopicsTab() {
311
310
@Preview(" Interests screen topics tab dark theme" )
312
311
@Composable
313
312
fun PreviewTopicsTabDark () {
314
- ThemedPreview (darkThemeColors ) {
313
+ ThemedPreview (darkTheme = true ) {
315
314
TopicsTab (loadFakeTopics())
316
315
}
317
316
}
@@ -332,7 +331,7 @@ fun PreviewPeopleTab() {
332
331
@Preview(" Interests screen people tab dark theme" )
333
332
@Composable
334
333
fun PreviewPeopleTabDark () {
335
- ThemedPreview (darkThemeColors ) {
334
+ ThemedPreview (darkTheme = true ) {
336
335
PeopleTab (loadFakePeople())
337
336
}
338
337
}
@@ -353,7 +352,7 @@ fun PreviewPublicationsTab() {
353
352
@Preview(" Interests screen publications tab dark theme" )
354
353
@Composable
355
354
fun PreviewPublicationsTabDark () {
356
- ThemedPreview (darkThemeColors ) {
355
+ ThemedPreview (darkTheme = true ) {
357
356
PublicationsTab (loadFakePublications())
358
357
}
359
358
}
@@ -374,7 +373,7 @@ fun PreviewTabWithTopics() {
374
373
@Preview(" Interests screen tab with topics dark theme" )
375
374
@Composable
376
375
fun PreviewTabWithTopicsDark () {
377
- ThemedPreview {
376
+ ThemedPreview (darkTheme = true ) {
378
377
TabWithTopics (tabName = " preview" , topics = listOf (" Hello" , " Compose" ))
379
378
}
380
379
}
0 commit comments