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:
parent
3fc8f1aaec
commit
0e89080a50
1066 changed files with 3 additions and 3 deletions
|
|
@ -79,7 +79,7 @@ private fun SessionState.toStringResId(): Int {
|
||||||
|
|
||||||
@PreviewsDayNight
|
@PreviewsDayNight
|
||||||
@Composable
|
@Composable
|
||||||
internal fun TimelineEncryptedHistoryBannerViewPreview(
|
internal fun EncryptedHistoryBannerViewPreview(
|
||||||
@PreviewParameter(SessionStateProvider::class) sessionState: SessionState,
|
@PreviewParameter(SessionStateProvider::class) sessionState: SessionState,
|
||||||
) = ElementPreview {
|
) = ElementPreview {
|
||||||
TimelineEncryptedHistoryBannerView(sessionState = sessionState)
|
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.
|
* 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.
|
* 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.
|
* 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.
|
* 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
Loading…
Add table
Add a link
Reference in a new issue