Skip to content

Commit

Permalink
Add more app store screenshots (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-e authored Aug 13, 2024
1 parent cceb1e5 commit 1feb882
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,33 @@ fun BookmarksScreenPreview() {
bookmarks = listOf(
StoryItem.Content(
id = 1L,
title = "Hello There",
author = "newuser",
title = "Show HN: A new Android client",
author = "heyrikin",
score = 10,
commentCount = 0,
commentCount = 45,
epochTimestamp = 100L,
timeLabel = "2h ago",
timeLabel = "3h ago",
bookmarked = true,
url = ""
),
StoryItem.Content(
id = 2L,
title = "Show HN: A new Android client",
author = "heyrikin",
score = 10,
commentCount = 45,
title = "Can we stop the decline of monarch butterflies and other pollinators?",
author = "rbro112",
score = 40,
commentCount = 23,
epochTimestamp = 100L,
timeLabel = "3h ago",
bookmarked = true,
timeLabel = "2h ago",
url = ""
),
StoryItem.Content(
id = 3L,
title = "Andy Warhol's lost Amiga art found",
author = "telkins",
score = 332,
commentCount = 103,
epochTimestamp = 100L,
timeLabel = "7h ago",
url = ""
),
)
Expand All @@ -102,4 +111,4 @@ fun BookmarksScreenPreview() {
navigator = {}
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ import androidx.compose.ui.text.input.KeyboardType
import androidx.compose.ui.text.input.PasswordVisualTransformation
import androidx.compose.ui.tooling.preview.PreviewLightDark
import androidx.compose.ui.unit.dp
import com.emergetools.hackernews.ui.preview.AppStoreSnapshot
import com.emergetools.hackernews.ui.theme.HackerNewsTheme
import com.emergetools.hackernews.ui.theme.HackerRed
import com.emergetools.snapshots.annotations.EmergeAppStoreSnapshot

@Composable
fun LoginScreen(
Expand Down Expand Up @@ -118,7 +120,9 @@ fun LoginScreen(
}
}

@OptIn(EmergeAppStoreSnapshot::class)
@PreviewLightDark
@AppStoreSnapshot
@Composable
private fun LoginScreenPreview() {
HackerNewsTheme {
Expand All @@ -128,4 +132,4 @@ private fun LoginScreenPreview() {
navigation = {}
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.PreviewLightDark
import androidx.compose.ui.unit.dp
import com.emergetools.hackernews.R
import com.emergetools.hackernews.ui.preview.AppStoreSnapshot
import com.emergetools.hackernews.ui.theme.HackerBlue
import com.emergetools.hackernews.ui.theme.HackerNewsTheme
import com.emergetools.hackernews.ui.theme.HackerOrange
import com.emergetools.snapshots.annotations.EmergeAppStoreSnapshot

@Composable
fun SettingsScreen(
Expand Down Expand Up @@ -127,7 +129,9 @@ fun SettingsScreen(
}
}

@OptIn(EmergeAppStoreSnapshot::class)
@PreviewLightDark
@AppStoreSnapshot
@Composable
private fun SettingsScreenPreview() {
HackerNewsTheme {
Expand Down

0 comments on commit 1feb882

Please sign in to comment.