Skip to content

Commit

Permalink
Add Preview in Light and Dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tevincent committed Oct 23, 2024
1 parent 04fcff0 commit 66946d2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package com.infomaniak.swisstransfer.ui.screen.newtransfer

import android.content.res.Configuration
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
Expand Down Expand Up @@ -78,7 +79,11 @@ fun FilesSize(files: List<FileUi>, withSpaceLeft: Boolean) {
}
}

@Preview
@Preview(name = "Light")
@Preview(
name = "Dark",
uiMode = Configuration.UI_MODE_NIGHT_YES or Configuration.UI_MODE_TYPE_NORMAL,
)
@Composable
fun FileSizePreview(@PreviewParameter(FileUiListPreviewParameter::class) files: List<FileUi>) {
SwissTransferTheme {
Expand Down

0 comments on commit 66946d2

Please sign in to comment.