1.8.0-alpha-6
New Feature: Enhanced Comparison with Grid and Labels 🚀
This update introduces a new grid and label feature, making visual comparisons more intuitive and effective. The grid layout provides a structured view, while labels offer clear identification, streamlining the testing process.
You can use the old style by setting ComparisonStyle to ComparisonStyle.Simple in RoborazziOptions
data class CompareOptions(
...
val comparisonStyle: ComparisonStyle = ComparisonStyle.Grid(),
) {
@ExperimentalRoborazziApi
sealed interface ComparisonStyle {
@ExperimentalRoborazziApi
data class Grid(
val bigLineSpaceDp: Int? = 16,
val smallLineSpaceDp: Int? = 4,
val hasLabel: Boolean = true
) : ComparisonStyle
object Simple : ComparisonStyle
}
What's Changed
- Fix the issue where errors are ignored and occur when changing the size during GIF recording. by @takahirom in #210
- Add labels and grid lines for the comparison image by @takahirom in #206
- Fix simple comparison image by @takahirom in #213
Full Changelog: 1.8.0-alpha-5...1.8.0-alpha-6