Loading core/ui/compose/designsystem/src/main/kotlin/app/k9mail/core/ui/compose/designsystem/atom/icon/Icons.kt +4 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ import androidx.compose.material.icons.filled.Outbox import androidx.compose.material.icons.filled.Star import androidx.compose.material.icons.filled.VisibilityOff import androidx.compose.material.icons.outlined.AccountCircle import androidx.compose.material.icons.outlined.AllInbox import androidx.compose.material.icons.outlined.Archive import androidx.compose.material.icons.outlined.Check import androidx.compose.material.icons.outlined.ChevronLeft Loading Loading @@ -50,6 +51,9 @@ object Icons { val AccountCircle: ImageVector get() = MaterialIcons.Outlined.AccountCircle val AllInbox: ImageVector get() = MaterialIcons.Outlined.AllInbox val Archive: ImageVector get() = MaterialIcons.Outlined.Archive Loading feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/DrawerContentPreview.kt +44 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.tooling.preview.Preview import app.k9mail.core.ui.compose.designsystem.PreviewWithTheme import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_ACCOUNT import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_FOLDER import app.k9mail.feature.navigation.drawer.ui.FakeData.UNIFIED_FOLDER import kotlinx.collections.immutable.persistentListOf @Composable Loading @@ -23,7 +25,7 @@ internal fun DrawerContentPreview() { @Composable @Preview(showBackground = true) fun DrawerContentWithAccountPreview() { internal fun DrawerContentWithAccountPreview() { PreviewWithTheme { DrawerContent( state = DrawerContract.State( Loading @@ -35,3 +37,44 @@ fun DrawerContentWithAccountPreview() { ) } } @Composable @Preview(showBackground = true) internal fun DrawerContentWithFoldersPreview() { PreviewWithTheme { DrawerContent( state = DrawerContract.State( accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccount = null, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, ), ), onEvent = {}, ) } } @Composable @Preview(showBackground = true) internal fun DrawerContentWithSelectedFolderPreview() { PreviewWithTheme { DrawerContent( state = DrawerContract.State( accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccount = DISPLAY_ACCOUNT, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, ), selectedFolder = DISPLAY_FOLDER, ), onEvent = {}, ) } } feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/FakeData.kt +9 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ import app.k9mail.core.mail.folder.api.Folder import app.k9mail.core.mail.folder.api.FolderType import app.k9mail.feature.navigation.drawer.domain.entity.DisplayAccount import app.k9mail.feature.navigation.drawer.domain.entity.DisplayAccountFolder import app.k9mail.feature.navigation.drawer.domain.entity.DisplayUnifiedFolder import app.k9mail.feature.navigation.drawer.domain.entity.DisplayUnifiedFolderType import app.k9mail.legacy.account.Account import app.k9mail.legacy.account.Identity Loading Loading @@ -52,4 +54,11 @@ internal object FakeData { unreadMessageCount = 14, starredMessageCount = 5, ) val UNIFIED_FOLDER = DisplayUnifiedFolder( id = "unified_inbox", unifiedType = DisplayUnifiedFolderType.INBOX, unreadMessageCount = 123, starredMessageCount = 567, ) } feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/account/AccountAvatarPreview.kt +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_ACCOUNT @Composable @Preview(showBackground = true) fun AccountAvatarPreview() { internal fun AccountAvatarPreview() { PreviewWithThemes { AccountAvatar( account = DISPLAY_ACCOUNT, Loading feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/account/AccountListItemPreview.kt +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_ACCOUNT @Composable @Preview(showBackground = true) fun AccountListItemPreview() { internal fun AccountListItemPreview() { PreviewWithThemes { AccountListItem( account = DISPLAY_ACCOUNT, Loading Loading
core/ui/compose/designsystem/src/main/kotlin/app/k9mail/core/ui/compose/designsystem/atom/icon/Icons.kt +4 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ import androidx.compose.material.icons.filled.Outbox import androidx.compose.material.icons.filled.Star import androidx.compose.material.icons.filled.VisibilityOff import androidx.compose.material.icons.outlined.AccountCircle import androidx.compose.material.icons.outlined.AllInbox import androidx.compose.material.icons.outlined.Archive import androidx.compose.material.icons.outlined.Check import androidx.compose.material.icons.outlined.ChevronLeft Loading Loading @@ -50,6 +51,9 @@ object Icons { val AccountCircle: ImageVector get() = MaterialIcons.Outlined.AccountCircle val AllInbox: ImageVector get() = MaterialIcons.Outlined.AllInbox val Archive: ImageVector get() = MaterialIcons.Outlined.Archive Loading
feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/DrawerContentPreview.kt +44 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.tooling.preview.Preview import app.k9mail.core.ui.compose.designsystem.PreviewWithTheme import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_ACCOUNT import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_FOLDER import app.k9mail.feature.navigation.drawer.ui.FakeData.UNIFIED_FOLDER import kotlinx.collections.immutable.persistentListOf @Composable Loading @@ -23,7 +25,7 @@ internal fun DrawerContentPreview() { @Composable @Preview(showBackground = true) fun DrawerContentWithAccountPreview() { internal fun DrawerContentWithAccountPreview() { PreviewWithTheme { DrawerContent( state = DrawerContract.State( Loading @@ -35,3 +37,44 @@ fun DrawerContentWithAccountPreview() { ) } } @Composable @Preview(showBackground = true) internal fun DrawerContentWithFoldersPreview() { PreviewWithTheme { DrawerContent( state = DrawerContract.State( accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccount = null, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, ), ), onEvent = {}, ) } } @Composable @Preview(showBackground = true) internal fun DrawerContentWithSelectedFolderPreview() { PreviewWithTheme { DrawerContent( state = DrawerContract.State( accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccount = DISPLAY_ACCOUNT, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, ), selectedFolder = DISPLAY_FOLDER, ), onEvent = {}, ) } }
feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/FakeData.kt +9 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ import app.k9mail.core.mail.folder.api.Folder import app.k9mail.core.mail.folder.api.FolderType import app.k9mail.feature.navigation.drawer.domain.entity.DisplayAccount import app.k9mail.feature.navigation.drawer.domain.entity.DisplayAccountFolder import app.k9mail.feature.navigation.drawer.domain.entity.DisplayUnifiedFolder import app.k9mail.feature.navigation.drawer.domain.entity.DisplayUnifiedFolderType import app.k9mail.legacy.account.Account import app.k9mail.legacy.account.Identity Loading Loading @@ -52,4 +54,11 @@ internal object FakeData { unreadMessageCount = 14, starredMessageCount = 5, ) val UNIFIED_FOLDER = DisplayUnifiedFolder( id = "unified_inbox", unifiedType = DisplayUnifiedFolderType.INBOX, unreadMessageCount = 123, starredMessageCount = 567, ) }
feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/account/AccountAvatarPreview.kt +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_ACCOUNT @Composable @Preview(showBackground = true) fun AccountAvatarPreview() { internal fun AccountAvatarPreview() { PreviewWithThemes { AccountAvatar( account = DISPLAY_ACCOUNT, Loading
feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/account/AccountListItemPreview.kt +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ import app.k9mail.feature.navigation.drawer.ui.FakeData.DISPLAY_ACCOUNT @Composable @Preview(showBackground = true) fun AccountListItemPreview() { internal fun AccountListItemPreview() { PreviewWithThemes { AccountListItem( account = DISPLAY_ACCOUNT, Loading