Skip to content

Commit

Permalink
Moved deleted ThemVariant to the screenshot test module
Browse files Browse the repository at this point in the history
This enum was useful to test component in the different color modes
  • Loading branch information
soulcramer committed Sep 5, 2024
1 parent 9f189c6 commit cb07dc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import androidx.compose.ui.platform.LocalInspectionMode
import app.cash.paparazzi.Paparazzi
import com.adevinta.spark.tokens.darkSparkColors
import com.adevinta.spark.tokens.lightSparkColors
import com.adevinta.spark.tools.preview.ThemeVariant


internal fun Paparazzi.sparkSnapshot(
name: String? = null,
Expand Down Expand Up @@ -87,3 +87,5 @@ internal fun Paparazzi.sparkSnapshotNightMode(
sparkSnapshot(name.orEmpty() + "_${it.name}", drawBackground, it == ThemeVariant.Dark, composable)
}
}

enum class ThemeVariant { Light, Dark }
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ import com.adevinta.spark.tags.TagsScreenshot.Style.Outlined
import com.adevinta.spark.tags.TagsScreenshot.Style.Tinted
import com.adevinta.spark.tokens.darkSparkColors
import com.adevinta.spark.tokens.lightSparkColors
import com.adevinta.spark.tools.preview.ThemeVariant
import com.adevinta.spark.tools.preview.ThemeVariant.Light

.Light
import com.android.ide.common.rendering.api.SessionParams.RenderingMode.V_SCROLL
import org.junit.Rule
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ import com.adevinta.spark.components.surface.Surface
import com.adevinta.spark.components.text.Text
import com.adevinta.spark.paparazziRule
import com.adevinta.spark.sparkSnapshot
import com.adevinta.spark.tools.preview.ThemeVariant
import com.adevinta.spark.tools.preview.ThemeVariant.Light

.Light
import org.junit.Rule
import org.junit.Test
import kotlin.reflect.KProperty0
Expand Down

0 comments on commit cb07dc1

Please sign in to comment.