Rename Preview to follow code convention
This commit is contained in:
parent
35e0b479f1
commit
0938935d16
24 changed files with 40 additions and 40 deletions
|
|
@ -108,7 +108,7 @@ fun PageTitle(
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun TitleWithIconFullPreview(@PreviewParameter(BigIconStylePreviewProvider::class) style: BigIcon.Style) {
|
||||
internal fun PageTitleWithIconFullPreview(@PreviewParameter(BigIconStylePreviewProvider::class) style: BigIcon.Style) {
|
||||
ElementPreview {
|
||||
PageTitle(
|
||||
modifier = Modifier.padding(top = 24.dp),
|
||||
|
|
@ -124,7 +124,7 @@ internal fun TitleWithIconFullPreview(@PreviewParameter(BigIconStylePreviewProvi
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun TitleWithIconMinimalPreview() {
|
||||
internal fun PageTitleWithIconMinimalPreview() {
|
||||
ElementPreview {
|
||||
PageTitle(
|
||||
modifier = Modifier.padding(top = 24.dp),
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ internal fun AsyncIndicatorView(
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun AsyncIndicatorView_Loading_Preview() {
|
||||
internal fun AsyncIndicatorLoadingPreview() {
|
||||
ElementPreview {
|
||||
AsyncIndicator.Loading(text = "Loading")
|
||||
}
|
||||
|
|
@ -83,7 +83,7 @@ internal fun AsyncIndicatorView_Loading_Preview() {
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun AsyncIndicatorView_Failed_Preview() {
|
||||
internal fun AsyncIndicatorFailurePreview() {
|
||||
ElementPreview {
|
||||
AsyncIndicator.Failure(text = "Failed")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import io.element.android.libraries.designsystem.theme.components.Text
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun UserAvatarPreview() = ElementPreview {
|
||||
internal fun UserAvatarColorsPreview() = ElementPreview {
|
||||
Column(
|
||||
modifier = Modifier.padding(8.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp),
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ internal fun GradientFloatingActionButtonPreview() {
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun GradientSendButtonPreview() {
|
||||
internal fun GradientFloatingActionButtonCircleShapePreview() {
|
||||
ElementPreview {
|
||||
Box(modifier = Modifier.padding(20.dp)) {
|
||||
GradientFloatingActionButton(
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ private fun PreferenceTopAppBar(
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun PreferenceViewPreview() = ElementPreview {
|
||||
internal fun PreferencePagePreview() = ElementPreview {
|
||||
PreferencePage(
|
||||
title = "Preference screen",
|
||||
onBackPressed = {},
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ fun WithRulers(
|
|||
|
||||
@PreviewsDayNight
|
||||
@Composable
|
||||
internal fun WithRulerPreview() = ElementPreview {
|
||||
internal fun WithRulersPreview() = ElementPreview {
|
||||
WithRulers(xRulersOffset = 20.dp, yRulersOffset = 15.dp) {
|
||||
OutlinedButton(
|
||||
text = "A Button with rulers on it!",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue