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:
committed by
GitHub
parent
3fc8f1aaec
commit
0e89080a50
@@ -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)
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user