Replace suffixes for @PreviewsDayNight annotation (#1736)

* Replace suffix for PreviewsDayNight annotation

* Rename Preview, since its filename was way too long

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
Jorge Martin Espinosa 2023-11-03 13:19:12 +01:00 committed by GitHub
parent 1f5a135072
commit 14dc8e1059
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1066 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,7 @@ private fun SessionState.toStringResId(): Int {
@PreviewsDayNight
@Composable
internal fun TimelineEncryptedHistoryBannerViewPreview(
internal fun EncryptedHistoryBannerViewPreview(
@PreviewParameter(SessionStateProvider::class) sessionState: SessionState,
) = ElementPreview {
TimelineEncryptedHistoryBannerView(sessionState = sessionState)

View file

@ -26,7 +26,7 @@ import androidx.compose.ui.tooling.preview.Preview
*
* NB: Length of this constant is kept to a minimum to avoid screenshot file names being too long.
*/
const val NIGHT_MODE_NAME = "N"
const val NIGHT_MODE_NAME = "Night"
/**
* Marker for a day mode preview.
@ -35,7 +35,7 @@ const val NIGHT_MODE_NAME = "N"
*
* NB: Length of this constant is kept to a minimum to avoid screenshot file names being too long.
*/
const val DAY_MODE_NAME = "D"
const val DAY_MODE_NAME = "Day"
/**
* Generates 2 previews of the composable it is applied to: day and night mode.

Some files were not shown because too many files have changed in this diff Show more