-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8155 from wmontwe/add-drawer-unified-folder-support
Add drawer unified folder support
- Loading branch information
Showing
34 changed files
with
424 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...awer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/folder/FolderListPreview.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package app.k9mail.feature.navigation.drawer.ui.folder | ||
|
||
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_FOLDER | ||
import app.k9mail.feature.navigation.drawer.ui.FakeData.UNIFIED_FOLDER | ||
import kotlinx.collections.immutable.persistentListOf | ||
|
||
@Composable | ||
@Preview(showBackground = true) | ||
internal fun FolderListPreview() { | ||
PreviewWithTheme { | ||
FolderList( | ||
folders = persistentListOf( | ||
DISPLAY_FOLDER, | ||
), | ||
selectedFolder = null, | ||
onFolderClick = {}, | ||
showStarredCount = false, | ||
) | ||
} | ||
} | ||
|
||
@Composable | ||
@Preview(showBackground = true) | ||
internal fun FolderListPreviewSelected() { | ||
PreviewWithTheme { | ||
FolderList( | ||
folders = persistentListOf( | ||
DISPLAY_FOLDER, | ||
), | ||
selectedFolder = DISPLAY_FOLDER, | ||
onFolderClick = {}, | ||
showStarredCount = false, | ||
) | ||
} | ||
} | ||
|
||
@Composable | ||
@Preview(showBackground = true) | ||
internal fun FolderListWithUnifiedFolderPreview() { | ||
PreviewWithTheme { | ||
FolderList( | ||
folders = persistentListOf( | ||
UNIFIED_FOLDER, | ||
DISPLAY_FOLDER, | ||
), | ||
selectedFolder = DISPLAY_FOLDER, | ||
onFolderClick = {}, | ||
showStarredCount = false, | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...rawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/domain/entity/DisplayFolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package app.k9mail.feature.navigation.drawer.domain.entity | ||
|
||
interface DisplayFolder { | ||
val id: String | ||
val unreadMessageCount: Int | ||
val starredMessageCount: Int | ||
} |
Oops, something went wrong.