diff --git a/app/build.gradle b/app/build.gradle index 66ebd167c..10376cadb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -96,18 +96,6 @@ android { } } -project.afterEvaluate { - tasks.configureEach { task -> - def name = task.name.toLowerCase() - def isAndroidTestFlavour = name.contains("androidtest") || name.contains("screenshots") - def isKspTask = name.startsWith("ksp") - if (isAndroidTestFlavour && isKspTask) { - // if we run the ksp for android test sources we will generate empty stories list - task.enabled = false - } - } -} - dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation libs.square.picasso diff --git a/app/screenshots.gradle b/app/screenshots.gradle index b9119beef..a287556af 100644 --- a/app/screenshots.gradle +++ b/app/screenshots.gradle @@ -23,7 +23,7 @@ android { managedDevices.devices { Docs(ManagedVirtualDevice) { device = "Pixel" - apiLevel = 30 + apiLevel = 31 systemImageSource = "aosp" } } diff --git a/app/src/main/java/net/skyscanner/backpack/demo/meta/StoriesRepository.kt b/app/src/main/java/net/skyscanner/backpack/demo/meta/StoriesRepository.kt index 57befd449..51dc58676 100644 --- a/app/src/main/java/net/skyscanner/backpack/demo/meta/StoriesRepository.kt +++ b/app/src/main/java/net/skyscanner/backpack/demo/meta/StoriesRepository.kt @@ -45,7 +45,7 @@ interface StoriesRepository { private object StoriesRepositoryImpl : StoriesRepository { private val stories = Story - .all() + .all .asSequence() private val visibleStories = stories diff --git a/app/src/main/java/net/skyscanner/backpack/demo/meta/Story.kt b/app/src/main/java/net/skyscanner/backpack/demo/meta/Story.kt index db69892cd..f72247ff1 100644 --- a/app/src/main/java/net/skyscanner/backpack/demo/meta/Story.kt +++ b/app/src/main/java/net/skyscanner/backpack/demo/meta/Story.kt @@ -21,6 +21,7 @@ package net.skyscanner.backpack.demo.meta import androidx.compose.runtime.Composable import androidx.compose.runtime.Immutable import net.skyscanner.backpack.meta.StoryKind +import kotlin.reflect.full.memberFunctions @Immutable data class Story( @@ -31,6 +32,16 @@ data class Story( val content: @Composable () -> Unit, ) { - // used for code-generated extensions - companion object + companion object { + + val all: List by lazy { + val kclass = try { + Class.forName("net.skyscanner.backpack.demo.meta.KspGeneratedStories").kotlin + } catch (e: ClassNotFoundException) { + null + } + val listFunction = kclass?.memberFunctions?.find { it.name == "list" } + listFunction?.call(kclass.objectInstance) as? List ?: emptyList() + } + } } diff --git a/docs/compose/Badge/screenshots/default.png b/docs/compose/Badge/screenshots/default.png index ab1f6fa42..d86b2c896 100644 Binary files a/docs/compose/Badge/screenshots/default.png and b/docs/compose/Badge/screenshots/default.png differ diff --git a/docs/compose/Badge/screenshots/default_dm.png b/docs/compose/Badge/screenshots/default_dm.png index 8a1131a16..fceda5a22 100644 Binary files a/docs/compose/Badge/screenshots/default_dm.png and b/docs/compose/Badge/screenshots/default_dm.png differ diff --git a/docs/compose/BarChart/screenshots/default.png b/docs/compose/BarChart/screenshots/default.png index b93d44d6b..0cb9c5cf1 100644 Binary files a/docs/compose/BarChart/screenshots/default.png and b/docs/compose/BarChart/screenshots/default.png differ diff --git a/docs/compose/BarChart/screenshots/default_dm.png b/docs/compose/BarChart/screenshots/default_dm.png index 3eda2d18f..71722cf56 100644 Binary files a/docs/compose/BarChart/screenshots/default_dm.png and b/docs/compose/BarChart/screenshots/default_dm.png differ diff --git a/docs/compose/BottomNav/screenshots/default.png b/docs/compose/BottomNav/screenshots/default.png index 529e3dc31..5251ec203 100644 Binary files a/docs/compose/BottomNav/screenshots/default.png and b/docs/compose/BottomNav/screenshots/default.png differ diff --git a/docs/compose/BottomNav/screenshots/default_dm.png b/docs/compose/BottomNav/screenshots/default_dm.png index 3bccf594a..24a31b777 100644 Binary files a/docs/compose/BottomNav/screenshots/default_dm.png and b/docs/compose/BottomNav/screenshots/default_dm.png differ diff --git a/docs/compose/BottomSheet/screenshots/default.png b/docs/compose/BottomSheet/screenshots/default.png index c44b01dc2..1ed19d2e3 100644 Binary files a/docs/compose/BottomSheet/screenshots/default.png and b/docs/compose/BottomSheet/screenshots/default.png differ diff --git a/docs/compose/BottomSheet/screenshots/default_dm.png b/docs/compose/BottomSheet/screenshots/default_dm.png index cce99299b..dbb8e30b9 100644 Binary files a/docs/compose/BottomSheet/screenshots/default_dm.png and b/docs/compose/BottomSheet/screenshots/default_dm.png differ diff --git a/docs/compose/Button/screenshots/default.png b/docs/compose/Button/screenshots/default.png index c45ef1a23..000429e42 100644 Binary files a/docs/compose/Button/screenshots/default.png and b/docs/compose/Button/screenshots/default.png differ diff --git a/docs/compose/Button/screenshots/default_dm.png b/docs/compose/Button/screenshots/default_dm.png index 34b739727..083016274 100644 Binary files a/docs/compose/Button/screenshots/default_dm.png and b/docs/compose/Button/screenshots/default_dm.png differ diff --git a/docs/compose/Button/screenshots/drawable-icon.png b/docs/compose/Button/screenshots/drawable-icon.png index 4e2cca86d..a76d7890d 100644 Binary files a/docs/compose/Button/screenshots/drawable-icon.png and b/docs/compose/Button/screenshots/drawable-icon.png differ diff --git a/docs/compose/Button/screenshots/drawable-icon_dm.png b/docs/compose/Button/screenshots/drawable-icon_dm.png index 2eb734d6c..67c80b7e9 100644 Binary files a/docs/compose/Button/screenshots/drawable-icon_dm.png and b/docs/compose/Button/screenshots/drawable-icon_dm.png differ diff --git a/docs/compose/Button/screenshots/large.png b/docs/compose/Button/screenshots/large.png index 4322f032b..81831789e 100644 Binary files a/docs/compose/Button/screenshots/large.png and b/docs/compose/Button/screenshots/large.png differ diff --git a/docs/compose/Button/screenshots/large_dm.png b/docs/compose/Button/screenshots/large_dm.png index 2621a0910..7de6f06a3 100644 Binary files a/docs/compose/Button/screenshots/large_dm.png and b/docs/compose/Button/screenshots/large_dm.png differ diff --git a/docs/compose/Button/screenshots/link.png b/docs/compose/Button/screenshots/link.png index fdbe22409..1ccdc6a64 100644 Binary files a/docs/compose/Button/screenshots/link.png and b/docs/compose/Button/screenshots/link.png differ diff --git a/docs/compose/Button/screenshots/link_dm.png b/docs/compose/Button/screenshots/link_dm.png index 94ee1831e..bca59053e 100644 Binary files a/docs/compose/Button/screenshots/link_dm.png and b/docs/compose/Button/screenshots/link_dm.png differ diff --git a/docs/compose/Calendar2/screenshots/day-labels.png b/docs/compose/Calendar2/screenshots/day-labels.png index 46a06c365..976cb037c 100644 Binary files a/docs/compose/Calendar2/screenshots/day-labels.png and b/docs/compose/Calendar2/screenshots/day-labels.png differ diff --git a/docs/compose/Calendar2/screenshots/day-labels_dm.png b/docs/compose/Calendar2/screenshots/day-labels_dm.png index 1f5417d5f..5516f38de 100644 Binary files a/docs/compose/Calendar2/screenshots/day-labels_dm.png and b/docs/compose/Calendar2/screenshots/day-labels_dm.png differ diff --git a/docs/compose/Calendar2/screenshots/pre-selected-range.png b/docs/compose/Calendar2/screenshots/pre-selected-range.png index 42cc57b0b..38c514cf0 100644 Binary files a/docs/compose/Calendar2/screenshots/pre-selected-range.png and b/docs/compose/Calendar2/screenshots/pre-selected-range.png differ diff --git a/docs/compose/Calendar2/screenshots/pre-selected-range_dm.png b/docs/compose/Calendar2/screenshots/pre-selected-range_dm.png index 56b8c83b0..4f7c3ddfb 100644 Binary files a/docs/compose/Calendar2/screenshots/pre-selected-range_dm.png and b/docs/compose/Calendar2/screenshots/pre-selected-range_dm.png differ diff --git a/docs/compose/Calendar2/screenshots/selection-whole-month.png b/docs/compose/Calendar2/screenshots/selection-whole-month.png index fa5aeae17..b880d3983 100644 Binary files a/docs/compose/Calendar2/screenshots/selection-whole-month.png and b/docs/compose/Calendar2/screenshots/selection-whole-month.png differ diff --git a/docs/compose/Calendar2/screenshots/selection-whole-month_dm.png b/docs/compose/Calendar2/screenshots/selection-whole-month_dm.png index 32660bcc0..f34765a8e 100644 Binary files a/docs/compose/Calendar2/screenshots/selection-whole-month_dm.png and b/docs/compose/Calendar2/screenshots/selection-whole-month_dm.png differ diff --git a/docs/compose/Card/screenshots/card-wrapper.png b/docs/compose/Card/screenshots/card-wrapper.png index 83faec53c..fddf78c6a 100644 Binary files a/docs/compose/Card/screenshots/card-wrapper.png and b/docs/compose/Card/screenshots/card-wrapper.png differ diff --git a/docs/compose/Card/screenshots/card-wrapper_dm.png b/docs/compose/Card/screenshots/card-wrapper_dm.png index c859e0dfe..dab0f93b0 100644 Binary files a/docs/compose/Card/screenshots/card-wrapper_dm.png and b/docs/compose/Card/screenshots/card-wrapper_dm.png differ diff --git a/docs/compose/Card/screenshots/default.png b/docs/compose/Card/screenshots/default.png index 63d4a1553..95c89e474 100644 Binary files a/docs/compose/Card/screenshots/default.png and b/docs/compose/Card/screenshots/default.png differ diff --git a/docs/compose/Card/screenshots/default_dm.png b/docs/compose/Card/screenshots/default_dm.png index c4bd2528e..6a2657e74 100644 Binary files a/docs/compose/Card/screenshots/default_dm.png and b/docs/compose/Card/screenshots/default_dm.png differ diff --git a/docs/compose/Card/screenshots/divided-card.png b/docs/compose/Card/screenshots/divided-card.png index 7df429d8f..f506a7e80 100644 Binary files a/docs/compose/Card/screenshots/divided-card.png and b/docs/compose/Card/screenshots/divided-card.png differ diff --git a/docs/compose/Card/screenshots/divided-card_dm.png b/docs/compose/Card/screenshots/divided-card_dm.png index 36f77b4f6..5a7194cc3 100644 Binary files a/docs/compose/Card/screenshots/divided-card_dm.png and b/docs/compose/Card/screenshots/divided-card_dm.png differ diff --git a/docs/compose/CardButton/screenshots/default.png b/docs/compose/CardButton/screenshots/default.png index ee2624f67..193717565 100644 Binary files a/docs/compose/CardButton/screenshots/default.png and b/docs/compose/CardButton/screenshots/default.png differ diff --git a/docs/compose/CardButton/screenshots/default_dm.png b/docs/compose/CardButton/screenshots/default_dm.png index 1b0677aed..24bf7c041 100644 Binary files a/docs/compose/CardButton/screenshots/default_dm.png and b/docs/compose/CardButton/screenshots/default_dm.png differ diff --git a/docs/compose/CardButton/screenshots/large.png b/docs/compose/CardButton/screenshots/large.png index d6e6ea3f0..9a3a80754 100644 Binary files a/docs/compose/CardButton/screenshots/large.png and b/docs/compose/CardButton/screenshots/large.png differ diff --git a/docs/compose/CardButton/screenshots/large_dm.png b/docs/compose/CardButton/screenshots/large_dm.png index b79e2ff75..efc16bcca 100644 Binary files a/docs/compose/CardButton/screenshots/large_dm.png and b/docs/compose/CardButton/screenshots/large_dm.png differ diff --git a/docs/compose/Carousel/screenshots/default.png b/docs/compose/Carousel/screenshots/default.png index 190939d5b..e569645e0 100644 Binary files a/docs/compose/Carousel/screenshots/default.png and b/docs/compose/Carousel/screenshots/default.png differ diff --git a/docs/compose/Carousel/screenshots/default_dm.png b/docs/compose/Carousel/screenshots/default_dm.png index e3b35335a..7396189bc 100644 Binary files a/docs/compose/Carousel/screenshots/default_dm.png and b/docs/compose/Carousel/screenshots/default_dm.png differ diff --git a/docs/compose/Checkbox/screenshots/default.png b/docs/compose/Checkbox/screenshots/default.png index 9ae363774..be84f8aa3 100644 Binary files a/docs/compose/Checkbox/screenshots/default.png and b/docs/compose/Checkbox/screenshots/default.png differ diff --git a/docs/compose/Checkbox/screenshots/default_dm.png b/docs/compose/Checkbox/screenshots/default_dm.png index 9393c03e6..cfda84f85 100644 Binary files a/docs/compose/Checkbox/screenshots/default_dm.png and b/docs/compose/Checkbox/screenshots/default_dm.png differ diff --git a/docs/compose/Chip/screenshots/default.png b/docs/compose/Chip/screenshots/default.png index 711a8e8b9..49af377bd 100644 Binary files a/docs/compose/Chip/screenshots/default.png and b/docs/compose/Chip/screenshots/default.png differ diff --git a/docs/compose/Chip/screenshots/default_dm.png b/docs/compose/Chip/screenshots/default_dm.png index e99f46ab4..0d4a1ac77 100644 Binary files a/docs/compose/Chip/screenshots/default_dm.png and b/docs/compose/Chip/screenshots/default_dm.png differ diff --git a/docs/compose/Chip/screenshots/on-dark.png b/docs/compose/Chip/screenshots/on-dark.png index 1df27ace1..c9882c903 100644 Binary files a/docs/compose/Chip/screenshots/on-dark.png and b/docs/compose/Chip/screenshots/on-dark.png differ diff --git a/docs/compose/Chip/screenshots/on-dark_dm.png b/docs/compose/Chip/screenshots/on-dark_dm.png index 4993ad064..d4d27f03a 100644 Binary files a/docs/compose/Chip/screenshots/on-dark_dm.png and b/docs/compose/Chip/screenshots/on-dark_dm.png differ diff --git a/docs/compose/Chip/screenshots/on-image.png b/docs/compose/Chip/screenshots/on-image.png index 330b8e95a..59ab2acc4 100644 Binary files a/docs/compose/Chip/screenshots/on-image.png and b/docs/compose/Chip/screenshots/on-image.png differ diff --git a/docs/compose/Chip/screenshots/on-image_dm.png b/docs/compose/Chip/screenshots/on-image_dm.png index 67322763a..91ec282c2 100644 Binary files a/docs/compose/Chip/screenshots/on-image_dm.png and b/docs/compose/Chip/screenshots/on-image_dm.png differ diff --git a/docs/compose/Dialog/screenshots/destructive.png b/docs/compose/Dialog/screenshots/destructive.png index f25c1c0e8..d85480c42 100644 Binary files a/docs/compose/Dialog/screenshots/destructive.png and b/docs/compose/Dialog/screenshots/destructive.png differ diff --git a/docs/compose/Dialog/screenshots/destructive_dm.png b/docs/compose/Dialog/screenshots/destructive_dm.png index 1386bffa1..aa5eb918c 100644 Binary files a/docs/compose/Dialog/screenshots/destructive_dm.png and b/docs/compose/Dialog/screenshots/destructive_dm.png differ diff --git a/docs/compose/Dialog/screenshots/flare.png b/docs/compose/Dialog/screenshots/flare.png index 206c8f4ce..ec9d4dae8 100644 Binary files a/docs/compose/Dialog/screenshots/flare.png and b/docs/compose/Dialog/screenshots/flare.png differ diff --git a/docs/compose/Dialog/screenshots/flare_dm.png b/docs/compose/Dialog/screenshots/flare_dm.png index 1d2d48a8c..b5e24cfc1 100644 Binary files a/docs/compose/Dialog/screenshots/flare_dm.png and b/docs/compose/Dialog/screenshots/flare_dm.png differ diff --git a/docs/compose/Dialog/screenshots/image-end-alignment.png b/docs/compose/Dialog/screenshots/image-end-alignment.png index 99ccfec49..88459de1e 100644 Binary files a/docs/compose/Dialog/screenshots/image-end-alignment.png and b/docs/compose/Dialog/screenshots/image-end-alignment.png differ diff --git a/docs/compose/Dialog/screenshots/image-end-alignment_dm.png b/docs/compose/Dialog/screenshots/image-end-alignment_dm.png index 203ea0ae2..c8df456bc 100644 Binary files a/docs/compose/Dialog/screenshots/image-end-alignment_dm.png and b/docs/compose/Dialog/screenshots/image-end-alignment_dm.png differ diff --git a/docs/compose/Dialog/screenshots/image-start-alignment.png b/docs/compose/Dialog/screenshots/image-start-alignment.png index c7fba136c..2b1dcd907 100644 Binary files a/docs/compose/Dialog/screenshots/image-start-alignment.png and b/docs/compose/Dialog/screenshots/image-start-alignment.png differ diff --git a/docs/compose/Dialog/screenshots/image-start-alignment_dm.png b/docs/compose/Dialog/screenshots/image-start-alignment_dm.png index 558c0c3fb..97036b6be 100644 Binary files a/docs/compose/Dialog/screenshots/image-start-alignment_dm.png and b/docs/compose/Dialog/screenshots/image-start-alignment_dm.png differ diff --git a/docs/compose/Dialog/screenshots/success-three-buttons.png b/docs/compose/Dialog/screenshots/success-three-buttons.png index 3097e6ae4..c0cb45916 100644 Binary files a/docs/compose/Dialog/screenshots/success-three-buttons.png and b/docs/compose/Dialog/screenshots/success-three-buttons.png differ diff --git a/docs/compose/Dialog/screenshots/success-three-buttons_dm.png b/docs/compose/Dialog/screenshots/success-three-buttons_dm.png index e88287c70..9cdfad109 100644 Binary files a/docs/compose/Dialog/screenshots/success-three-buttons_dm.png and b/docs/compose/Dialog/screenshots/success-three-buttons_dm.png differ diff --git a/docs/compose/Dialog/screenshots/warning.png b/docs/compose/Dialog/screenshots/warning.png index f0eedf271..01e6a13bb 100644 Binary files a/docs/compose/Dialog/screenshots/warning.png and b/docs/compose/Dialog/screenshots/warning.png differ diff --git a/docs/compose/Dialog/screenshots/warning_dm.png b/docs/compose/Dialog/screenshots/warning_dm.png index cd07e74ea..0e05208d0 100644 Binary files a/docs/compose/Dialog/screenshots/warning_dm.png and b/docs/compose/Dialog/screenshots/warning_dm.png differ diff --git a/docs/compose/Divider/screenshots/default.png b/docs/compose/Divider/screenshots/default.png index 5600735da..8a7076c56 100644 Binary files a/docs/compose/Divider/screenshots/default.png and b/docs/compose/Divider/screenshots/default.png differ diff --git a/docs/compose/Divider/screenshots/default_dm.png b/docs/compose/Divider/screenshots/default_dm.png index 677723e56..6ec9e40ef 100644 Binary files a/docs/compose/Divider/screenshots/default_dm.png and b/docs/compose/Divider/screenshots/default_dm.png differ diff --git a/docs/compose/FieldSet/screenshots/default.png b/docs/compose/FieldSet/screenshots/default.png index 109d86657..681d55fd5 100644 Binary files a/docs/compose/FieldSet/screenshots/default.png and b/docs/compose/FieldSet/screenshots/default.png differ diff --git a/docs/compose/FieldSet/screenshots/default_dm.png b/docs/compose/FieldSet/screenshots/default_dm.png index a27f68625..655853db3 100644 Binary files a/docs/compose/FieldSet/screenshots/default_dm.png and b/docs/compose/FieldSet/screenshots/default_dm.png differ diff --git a/docs/compose/FieldSet/screenshots/disabled.png b/docs/compose/FieldSet/screenshots/disabled.png index a7b4746c4..4c619a69c 100644 Binary files a/docs/compose/FieldSet/screenshots/disabled.png and b/docs/compose/FieldSet/screenshots/disabled.png differ diff --git a/docs/compose/FieldSet/screenshots/disabled_dm.png b/docs/compose/FieldSet/screenshots/disabled_dm.png index 8ab3db777..60a65d365 100644 Binary files a/docs/compose/FieldSet/screenshots/disabled_dm.png and b/docs/compose/FieldSet/screenshots/disabled_dm.png differ diff --git a/docs/compose/FieldSet/screenshots/error.png b/docs/compose/FieldSet/screenshots/error.png index 3886dbc40..94d4bd6e8 100644 Binary files a/docs/compose/FieldSet/screenshots/error.png and b/docs/compose/FieldSet/screenshots/error.png differ diff --git a/docs/compose/FieldSet/screenshots/error_dm.png b/docs/compose/FieldSet/screenshots/error_dm.png index c3e14ecba..5fe3d0330 100644 Binary files a/docs/compose/FieldSet/screenshots/error_dm.png and b/docs/compose/FieldSet/screenshots/error_dm.png differ diff --git a/docs/compose/FieldSet/screenshots/validated.png b/docs/compose/FieldSet/screenshots/validated.png index 13a8c274f..3be53e232 100644 Binary files a/docs/compose/FieldSet/screenshots/validated.png and b/docs/compose/FieldSet/screenshots/validated.png differ diff --git a/docs/compose/FieldSet/screenshots/validated_dm.png b/docs/compose/FieldSet/screenshots/validated_dm.png index c368d0d5a..aa25c21f3 100644 Binary files a/docs/compose/FieldSet/screenshots/validated_dm.png and b/docs/compose/FieldSet/screenshots/validated_dm.png differ diff --git a/docs/compose/Flare/screenshots/default.png b/docs/compose/Flare/screenshots/default.png index cdab45cdb..b2c9565bd 100644 Binary files a/docs/compose/Flare/screenshots/default.png and b/docs/compose/Flare/screenshots/default.png differ diff --git a/docs/compose/Flare/screenshots/default_dm.png b/docs/compose/Flare/screenshots/default_dm.png index 4d9773bc5..86f64f6a9 100644 Binary files a/docs/compose/Flare/screenshots/default_dm.png and b/docs/compose/Flare/screenshots/default_dm.png differ diff --git a/docs/compose/FlightLeg/screenshots/default.png b/docs/compose/FlightLeg/screenshots/default.png index 6a8ba3d22..13d5fdab2 100644 Binary files a/docs/compose/FlightLeg/screenshots/default.png and b/docs/compose/FlightLeg/screenshots/default.png differ diff --git a/docs/compose/FlightLeg/screenshots/default_dm.png b/docs/compose/FlightLeg/screenshots/default_dm.png index 406a98677..ea664c576 100644 Binary files a/docs/compose/FlightLeg/screenshots/default_dm.png and b/docs/compose/FlightLeg/screenshots/default_dm.png differ diff --git a/docs/compose/FloatingActionButton/screenshots/default.png b/docs/compose/FloatingActionButton/screenshots/default.png index 9f5d1399e..976475bca 100644 Binary files a/docs/compose/FloatingActionButton/screenshots/default.png and b/docs/compose/FloatingActionButton/screenshots/default.png differ diff --git a/docs/compose/FloatingActionButton/screenshots/default_dm.png b/docs/compose/FloatingActionButton/screenshots/default_dm.png index 74e6efac5..c5c9c2f46 100644 Binary files a/docs/compose/FloatingActionButton/screenshots/default_dm.png and b/docs/compose/FloatingActionButton/screenshots/default_dm.png differ diff --git a/docs/compose/FloatingNotification/screenshots/default.png b/docs/compose/FloatingNotification/screenshots/default.png index c6030827b..78cd388ad 100644 Binary files a/docs/compose/FloatingNotification/screenshots/default.png and b/docs/compose/FloatingNotification/screenshots/default.png differ diff --git a/docs/compose/FloatingNotification/screenshots/default_dm.png b/docs/compose/FloatingNotification/screenshots/default_dm.png index 43ed303ac..3cf80417b 100644 Binary files a/docs/compose/FloatingNotification/screenshots/default_dm.png and b/docs/compose/FloatingNotification/screenshots/default_dm.png differ diff --git a/docs/compose/HorizontalNav/screenshots/default.png b/docs/compose/HorizontalNav/screenshots/default.png index e5ff2309e..1ae767808 100644 Binary files a/docs/compose/HorizontalNav/screenshots/default.png and b/docs/compose/HorizontalNav/screenshots/default.png differ diff --git a/docs/compose/HorizontalNav/screenshots/default_dm.png b/docs/compose/HorizontalNav/screenshots/default_dm.png index dde3ae8b2..9e49a2ed4 100644 Binary files a/docs/compose/HorizontalNav/screenshots/default_dm.png and b/docs/compose/HorizontalNav/screenshots/default_dm.png differ diff --git a/docs/compose/Icon/screenshots/default.png b/docs/compose/Icon/screenshots/default.png index be6835044..8607c24aa 100644 Binary files a/docs/compose/Icon/screenshots/default.png and b/docs/compose/Icon/screenshots/default.png differ diff --git a/docs/compose/Icon/screenshots/default_dm.png b/docs/compose/Icon/screenshots/default_dm.png index 76179c4d0..e1973a53a 100644 Binary files a/docs/compose/Icon/screenshots/default_dm.png and b/docs/compose/Icon/screenshots/default_dm.png differ diff --git a/docs/compose/NavBar/screenshots/collapsible.png b/docs/compose/NavBar/screenshots/collapsible.png index 6d18b1a9d..2585e05f0 100644 Binary files a/docs/compose/NavBar/screenshots/collapsible.png and b/docs/compose/NavBar/screenshots/collapsible.png differ diff --git a/docs/compose/NavBar/screenshots/collapsible_dm.png b/docs/compose/NavBar/screenshots/collapsible_dm.png index 47446c957..ab936ea43 100644 Binary files a/docs/compose/NavBar/screenshots/collapsible_dm.png and b/docs/compose/NavBar/screenshots/collapsible_dm.png differ diff --git a/docs/compose/NavBar/screenshots/default.png b/docs/compose/NavBar/screenshots/default.png index 0444110f4..47f2f4a7f 100644 Binary files a/docs/compose/NavBar/screenshots/default.png and b/docs/compose/NavBar/screenshots/default.png differ diff --git a/docs/compose/NavBar/screenshots/default_dm.png b/docs/compose/NavBar/screenshots/default_dm.png index 2548b4350..b07f083fb 100644 Binary files a/docs/compose/NavBar/screenshots/default_dm.png and b/docs/compose/NavBar/screenshots/default_dm.png differ diff --git a/docs/compose/Nudger/screenshots/default.png b/docs/compose/Nudger/screenshots/default.png index d276ec5b9..c59004db6 100644 Binary files a/docs/compose/Nudger/screenshots/default.png and b/docs/compose/Nudger/screenshots/default.png differ diff --git a/docs/compose/Nudger/screenshots/default_dm.png b/docs/compose/Nudger/screenshots/default_dm.png index 83ac8496d..be180a679 100644 Binary files a/docs/compose/Nudger/screenshots/default_dm.png and b/docs/compose/Nudger/screenshots/default_dm.png differ diff --git a/docs/compose/Overlay/screenshots/default.png b/docs/compose/Overlay/screenshots/default.png index 1040b6293..86d3b2a81 100644 Binary files a/docs/compose/Overlay/screenshots/default.png and b/docs/compose/Overlay/screenshots/default.png differ diff --git a/docs/compose/Overlay/screenshots/default_dm.png b/docs/compose/Overlay/screenshots/default_dm.png index df69e93fc..06e7fd3b9 100644 Binary files a/docs/compose/Overlay/screenshots/default_dm.png and b/docs/compose/Overlay/screenshots/default_dm.png differ diff --git a/docs/compose/PageIndicator/screenshots/default.png b/docs/compose/PageIndicator/screenshots/default.png index 4a1a586e7..0dfd9ceff 100644 Binary files a/docs/compose/PageIndicator/screenshots/default.png and b/docs/compose/PageIndicator/screenshots/default.png differ diff --git a/docs/compose/PageIndicator/screenshots/default_dm.png b/docs/compose/PageIndicator/screenshots/default_dm.png index 61b563287..2577f8e49 100644 Binary files a/docs/compose/PageIndicator/screenshots/default_dm.png and b/docs/compose/PageIndicator/screenshots/default_dm.png differ diff --git a/docs/compose/Panel/screenshots/default.png b/docs/compose/Panel/screenshots/default.png index 943e76b97..866521452 100644 Binary files a/docs/compose/Panel/screenshots/default.png and b/docs/compose/Panel/screenshots/default.png differ diff --git a/docs/compose/Panel/screenshots/default_dm.png b/docs/compose/Panel/screenshots/default_dm.png index 0c4a5b2db..e226319e7 100644 Binary files a/docs/compose/Panel/screenshots/default_dm.png and b/docs/compose/Panel/screenshots/default_dm.png differ diff --git a/docs/compose/Price/screenshots/large.png b/docs/compose/Price/screenshots/large.png index 2629a3937..f75f864ec 100644 Binary files a/docs/compose/Price/screenshots/large.png and b/docs/compose/Price/screenshots/large.png differ diff --git a/docs/compose/Price/screenshots/large_dm.png b/docs/compose/Price/screenshots/large_dm.png index 64be78f9d..a15929467 100644 Binary files a/docs/compose/Price/screenshots/large_dm.png and b/docs/compose/Price/screenshots/large_dm.png differ diff --git a/docs/compose/Price/screenshots/small.png b/docs/compose/Price/screenshots/small.png index 3462ad57f..5ec181180 100644 Binary files a/docs/compose/Price/screenshots/small.png and b/docs/compose/Price/screenshots/small.png differ diff --git a/docs/compose/Price/screenshots/small_dm.png b/docs/compose/Price/screenshots/small_dm.png index 79540da42..eb8ba24e1 100644 Binary files a/docs/compose/Price/screenshots/small_dm.png and b/docs/compose/Price/screenshots/small_dm.png differ diff --git a/docs/compose/RadioButton/screenshots/default.png b/docs/compose/RadioButton/screenshots/default.png index 5479dc49d..3abe11b61 100644 Binary files a/docs/compose/RadioButton/screenshots/default.png and b/docs/compose/RadioButton/screenshots/default.png differ diff --git a/docs/compose/RadioButton/screenshots/default_dm.png b/docs/compose/RadioButton/screenshots/default_dm.png index 73591f4f0..93100bdc3 100644 Binary files a/docs/compose/RadioButton/screenshots/default_dm.png and b/docs/compose/RadioButton/screenshots/default_dm.png differ diff --git a/docs/compose/Rating/screenshots/default.png b/docs/compose/Rating/screenshots/default.png index 76a094685..752fb51bb 100644 Binary files a/docs/compose/Rating/screenshots/default.png and b/docs/compose/Rating/screenshots/default.png differ diff --git a/docs/compose/Rating/screenshots/default_dm.png b/docs/compose/Rating/screenshots/default_dm.png index b11d582c5..fe5bc3237 100644 Binary files a/docs/compose/Rating/screenshots/default_dm.png and b/docs/compose/Rating/screenshots/default_dm.png differ diff --git a/docs/compose/Skeleton/screenshots/default.png b/docs/compose/Skeleton/screenshots/default.png index 3f78fa0ab..e7856a947 100644 Binary files a/docs/compose/Skeleton/screenshots/default.png and b/docs/compose/Skeleton/screenshots/default.png differ diff --git a/docs/compose/Skeleton/screenshots/default_dm.png b/docs/compose/Skeleton/screenshots/default_dm.png index 6a4a65e01..8dfdcf86f 100644 Binary files a/docs/compose/Skeleton/screenshots/default_dm.png and b/docs/compose/Skeleton/screenshots/default_dm.png differ diff --git a/docs/compose/Slider/screenshots/default.png b/docs/compose/Slider/screenshots/default.png index c06ac3a28..155d4393e 100644 Binary files a/docs/compose/Slider/screenshots/default.png and b/docs/compose/Slider/screenshots/default.png differ diff --git a/docs/compose/Slider/screenshots/default_dm.png b/docs/compose/Slider/screenshots/default_dm.png index c8c4b0c6c..552acddb7 100644 Binary files a/docs/compose/Slider/screenshots/default_dm.png and b/docs/compose/Slider/screenshots/default_dm.png differ diff --git a/docs/compose/Spinner/screenshots/default.png b/docs/compose/Spinner/screenshots/default.png index 21a072338..dd7c3205d 100644 Binary files a/docs/compose/Spinner/screenshots/default.png and b/docs/compose/Spinner/screenshots/default.png differ diff --git a/docs/compose/Spinner/screenshots/default_dm.png b/docs/compose/Spinner/screenshots/default_dm.png index 0db27a56e..224872c2c 100644 Binary files a/docs/compose/Spinner/screenshots/default_dm.png and b/docs/compose/Spinner/screenshots/default_dm.png differ diff --git a/docs/compose/StarRating/screenshots/default.png b/docs/compose/StarRating/screenshots/default.png index e7cc892a1..38c42189b 100644 Binary files a/docs/compose/StarRating/screenshots/default.png and b/docs/compose/StarRating/screenshots/default.png differ diff --git a/docs/compose/StarRating/screenshots/default_dm.png b/docs/compose/StarRating/screenshots/default_dm.png index c7d7976a6..d4c48cdc3 100644 Binary files a/docs/compose/StarRating/screenshots/default_dm.png and b/docs/compose/StarRating/screenshots/default_dm.png differ diff --git a/docs/compose/StarRatingInteractive/screenshots/default.png b/docs/compose/StarRatingInteractive/screenshots/default.png index 62e88526f..2e501e8fa 100644 Binary files a/docs/compose/StarRatingInteractive/screenshots/default.png and b/docs/compose/StarRatingInteractive/screenshots/default.png differ diff --git a/docs/compose/StarRatingInteractive/screenshots/default_dm.png b/docs/compose/StarRatingInteractive/screenshots/default_dm.png index cb0c9ea70..a2ab3f540 100644 Binary files a/docs/compose/StarRatingInteractive/screenshots/default_dm.png and b/docs/compose/StarRatingInteractive/screenshots/default_dm.png differ diff --git a/docs/compose/Switch/screenshots/default.png b/docs/compose/Switch/screenshots/default.png index 8cf8898b0..4a0e55e04 100644 Binary files a/docs/compose/Switch/screenshots/default.png and b/docs/compose/Switch/screenshots/default.png differ diff --git a/docs/compose/Switch/screenshots/default_dm.png b/docs/compose/Switch/screenshots/default_dm.png index 3b2f913cb..a3f330917 100644 Binary files a/docs/compose/Switch/screenshots/default_dm.png and b/docs/compose/Switch/screenshots/default_dm.png differ diff --git a/docs/compose/Text/screenshots/body.png b/docs/compose/Text/screenshots/body.png index a226562d1..5346229fd 100644 Binary files a/docs/compose/Text/screenshots/body.png and b/docs/compose/Text/screenshots/body.png differ diff --git a/docs/compose/Text/screenshots/body_dm.png b/docs/compose/Text/screenshots/body_dm.png index 9d81d2378..75ae76def 100644 Binary files a/docs/compose/Text/screenshots/body_dm.png and b/docs/compose/Text/screenshots/body_dm.png differ diff --git a/docs/compose/Text/screenshots/heading.png b/docs/compose/Text/screenshots/heading.png index c2d4c195c..e28c0d8d5 100644 Binary files a/docs/compose/Text/screenshots/heading.png and b/docs/compose/Text/screenshots/heading.png differ diff --git a/docs/compose/Text/screenshots/heading_dm.png b/docs/compose/Text/screenshots/heading_dm.png index baf772103..782685916 100644 Binary files a/docs/compose/Text/screenshots/heading_dm.png and b/docs/compose/Text/screenshots/heading_dm.png differ diff --git a/docs/compose/Text/screenshots/hero.png b/docs/compose/Text/screenshots/hero.png index 485460613..b46b50596 100644 Binary files a/docs/compose/Text/screenshots/hero.png and b/docs/compose/Text/screenshots/hero.png differ diff --git a/docs/compose/Text/screenshots/hero_dm.png b/docs/compose/Text/screenshots/hero_dm.png index d03b084b8..e591247f5 100644 Binary files a/docs/compose/Text/screenshots/hero_dm.png and b/docs/compose/Text/screenshots/hero_dm.png differ diff --git a/docs/compose/TextField/screenshots/default.png b/docs/compose/TextField/screenshots/default.png index f787dc59a..7be8b9522 100644 Binary files a/docs/compose/TextField/screenshots/default.png and b/docs/compose/TextField/screenshots/default.png differ diff --git a/docs/compose/TextField/screenshots/default_dm.png b/docs/compose/TextField/screenshots/default_dm.png index 8da893ac2..d66bdee89 100644 Binary files a/docs/compose/TextField/screenshots/default_dm.png and b/docs/compose/TextField/screenshots/default_dm.png differ diff --git a/docs/compose/TextField/screenshots/disabled.png b/docs/compose/TextField/screenshots/disabled.png index c322fde8b..152e34e36 100644 Binary files a/docs/compose/TextField/screenshots/disabled.png and b/docs/compose/TextField/screenshots/disabled.png differ diff --git a/docs/compose/TextField/screenshots/disabled_dm.png b/docs/compose/TextField/screenshots/disabled_dm.png index c6eccaf17..3c4f09256 100644 Binary files a/docs/compose/TextField/screenshots/disabled_dm.png and b/docs/compose/TextField/screenshots/disabled_dm.png differ diff --git a/docs/compose/TextField/screenshots/error.png b/docs/compose/TextField/screenshots/error.png index e26ce506a..cc1672332 100644 Binary files a/docs/compose/TextField/screenshots/error.png and b/docs/compose/TextField/screenshots/error.png differ diff --git a/docs/compose/TextField/screenshots/error_dm.png b/docs/compose/TextField/screenshots/error_dm.png index a5dadcf62..b5d218712 100644 Binary files a/docs/compose/TextField/screenshots/error_dm.png and b/docs/compose/TextField/screenshots/error_dm.png differ diff --git a/docs/compose/TextField/screenshots/validated.png b/docs/compose/TextField/screenshots/validated.png index 261e44f0d..518e03a80 100644 Binary files a/docs/compose/TextField/screenshots/validated.png and b/docs/compose/TextField/screenshots/validated.png differ diff --git a/docs/compose/TextField/screenshots/validated_dm.png b/docs/compose/TextField/screenshots/validated_dm.png index c2ac7cc72..986c14846 100644 Binary files a/docs/compose/TextField/screenshots/validated_dm.png and b/docs/compose/TextField/screenshots/validated_dm.png differ diff --git a/docs/view/Badge/screenshots/default.png b/docs/view/Badge/screenshots/default.png index 5ef28fcc2..f2852e0fd 100644 Binary files a/docs/view/Badge/screenshots/default.png and b/docs/view/Badge/screenshots/default.png differ diff --git a/docs/view/Badge/screenshots/default_dm.png b/docs/view/Badge/screenshots/default_dm.png index 2ea5f420b..a87dc54fd 100644 Binary files a/docs/view/Badge/screenshots/default_dm.png and b/docs/view/Badge/screenshots/default_dm.png differ diff --git a/docs/view/BarChart/screenshots/default.png b/docs/view/BarChart/screenshots/default.png index adfd065ca..c1a529e7d 100644 Binary files a/docs/view/BarChart/screenshots/default.png and b/docs/view/BarChart/screenshots/default.png differ diff --git a/docs/view/BarChart/screenshots/default_dm.png b/docs/view/BarChart/screenshots/default_dm.png index 1296e1de7..401b90b0f 100644 Binary files a/docs/view/BarChart/screenshots/default_dm.png and b/docs/view/BarChart/screenshots/default_dm.png differ diff --git a/docs/view/BottomNav/screenshots/default.png b/docs/view/BottomNav/screenshots/default.png index 232afc0e9..eaea057fe 100644 Binary files a/docs/view/BottomNav/screenshots/default.png and b/docs/view/BottomNav/screenshots/default.png differ diff --git a/docs/view/BottomNav/screenshots/default_dm.png b/docs/view/BottomNav/screenshots/default_dm.png index ad48abe2b..7a197dc2f 100644 Binary files a/docs/view/BottomNav/screenshots/default_dm.png and b/docs/view/BottomNav/screenshots/default_dm.png differ diff --git a/docs/view/BottomSheet/screenshots/default.png b/docs/view/BottomSheet/screenshots/default.png index e46b534e7..d5f8e3ed0 100644 Binary files a/docs/view/BottomSheet/screenshots/default.png and b/docs/view/BottomSheet/screenshots/default.png differ diff --git a/docs/view/BottomSheet/screenshots/default_dm.png b/docs/view/BottomSheet/screenshots/default_dm.png index a44bce906..a3d1090e9 100644 Binary files a/docs/view/BottomSheet/screenshots/default_dm.png and b/docs/view/BottomSheet/screenshots/default_dm.png differ diff --git a/docs/view/Button/screenshots/large.png b/docs/view/Button/screenshots/large.png index 6950bd7b3..7bf4297a9 100644 Binary files a/docs/view/Button/screenshots/large.png and b/docs/view/Button/screenshots/large.png differ diff --git a/docs/view/Button/screenshots/large_dm.png b/docs/view/Button/screenshots/large_dm.png index aa44769bf..587c05813 100644 Binary files a/docs/view/Button/screenshots/large_dm.png and b/docs/view/Button/screenshots/large_dm.png differ diff --git a/docs/view/Button/screenshots/link.png b/docs/view/Button/screenshots/link.png index 49cc3f86a..15364468d 100644 Binary files a/docs/view/Button/screenshots/link.png and b/docs/view/Button/screenshots/link.png differ diff --git a/docs/view/Button/screenshots/link_dm.png b/docs/view/Button/screenshots/link_dm.png index c46638579..1fe38a0ec 100644 Binary files a/docs/view/Button/screenshots/link_dm.png and b/docs/view/Button/screenshots/link_dm.png differ diff --git a/docs/view/Button/screenshots/standard.png b/docs/view/Button/screenshots/standard.png index 7f23f5dec..bd15a5538 100644 Binary files a/docs/view/Button/screenshots/standard.png and b/docs/view/Button/screenshots/standard.png differ diff --git a/docs/view/Button/screenshots/standard_dm.png b/docs/view/Button/screenshots/standard_dm.png index 7a792b933..91d4395d3 100644 Binary files a/docs/view/Button/screenshots/standard_dm.png and b/docs/view/Button/screenshots/standard_dm.png differ diff --git a/docs/view/Calendar2/screenshots/day-labels.png b/docs/view/Calendar2/screenshots/day-labels.png index 0d6610131..7cd481d10 100644 Binary files a/docs/view/Calendar2/screenshots/day-labels.png and b/docs/view/Calendar2/screenshots/day-labels.png differ diff --git a/docs/view/Calendar2/screenshots/day-labels_dm.png b/docs/view/Calendar2/screenshots/day-labels_dm.png index c6e9691ee..dc3b41ee5 100644 Binary files a/docs/view/Calendar2/screenshots/day-labels_dm.png and b/docs/view/Calendar2/screenshots/day-labels_dm.png differ diff --git a/docs/view/Calendar2/screenshots/pre-selected-range.png b/docs/view/Calendar2/screenshots/pre-selected-range.png index b8bf9f8b3..7aa374144 100644 Binary files a/docs/view/Calendar2/screenshots/pre-selected-range.png and b/docs/view/Calendar2/screenshots/pre-selected-range.png differ diff --git a/docs/view/Calendar2/screenshots/pre-selected-range_dm.png b/docs/view/Calendar2/screenshots/pre-selected-range_dm.png index a1bd10436..3b4713676 100644 Binary files a/docs/view/Calendar2/screenshots/pre-selected-range_dm.png and b/docs/view/Calendar2/screenshots/pre-selected-range_dm.png differ diff --git a/docs/view/Calendar2/screenshots/selection-whole-month.png b/docs/view/Calendar2/screenshots/selection-whole-month.png index 6c8f34ed2..98d9a47d1 100644 Binary files a/docs/view/Calendar2/screenshots/selection-whole-month.png and b/docs/view/Calendar2/screenshots/selection-whole-month.png differ diff --git a/docs/view/Calendar2/screenshots/selection-whole-month_dm.png b/docs/view/Calendar2/screenshots/selection-whole-month_dm.png index 233146f89..ffd780732 100644 Binary files a/docs/view/Calendar2/screenshots/selection-whole-month_dm.png and b/docs/view/Calendar2/screenshots/selection-whole-month_dm.png differ diff --git a/docs/view/Card/screenshots/corner-style-large.png b/docs/view/Card/screenshots/corner-style-large.png index eed8c9551..823c85303 100644 Binary files a/docs/view/Card/screenshots/corner-style-large.png and b/docs/view/Card/screenshots/corner-style-large.png differ diff --git a/docs/view/Card/screenshots/corner-style-large_dm.png b/docs/view/Card/screenshots/corner-style-large_dm.png index a5104d77f..f780f9a07 100644 Binary files a/docs/view/Card/screenshots/corner-style-large_dm.png and b/docs/view/Card/screenshots/corner-style-large_dm.png differ diff --git a/docs/view/Card/screenshots/default.png b/docs/view/Card/screenshots/default.png index 1a9a3f983..dc11a6134 100644 Binary files a/docs/view/Card/screenshots/default.png and b/docs/view/Card/screenshots/default.png differ diff --git a/docs/view/Card/screenshots/default_dm.png b/docs/view/Card/screenshots/default_dm.png index 67b2b6ee0..1e698cb4c 100644 Binary files a/docs/view/Card/screenshots/default_dm.png and b/docs/view/Card/screenshots/default_dm.png differ diff --git a/docs/view/Card/screenshots/selected.png b/docs/view/Card/screenshots/selected.png index 41c8f4390..cba13e339 100644 Binary files a/docs/view/Card/screenshots/selected.png and b/docs/view/Card/screenshots/selected.png differ diff --git a/docs/view/Card/screenshots/selected_dm.png b/docs/view/Card/screenshots/selected_dm.png index f6b4e1fc8..113cd75ed 100644 Binary files a/docs/view/Card/screenshots/selected_dm.png and b/docs/view/Card/screenshots/selected_dm.png differ diff --git a/docs/view/Card/screenshots/with-divider-and-corner-style-large.png b/docs/view/Card/screenshots/with-divider-and-corner-style-large.png index d41ff34da..299998ec8 100644 Binary files a/docs/view/Card/screenshots/with-divider-and-corner-style-large.png and b/docs/view/Card/screenshots/with-divider-and-corner-style-large.png differ diff --git a/docs/view/Card/screenshots/with-divider-and-corner-style-large_dm.png b/docs/view/Card/screenshots/with-divider-and-corner-style-large_dm.png index d8617547a..9f6d82319 100644 Binary files a/docs/view/Card/screenshots/with-divider-and-corner-style-large_dm.png and b/docs/view/Card/screenshots/with-divider-and-corner-style-large_dm.png differ diff --git a/docs/view/Card/screenshots/with-divider-arranged-vertically.png b/docs/view/Card/screenshots/with-divider-arranged-vertically.png index 445ecab35..273d677d0 100644 Binary files a/docs/view/Card/screenshots/with-divider-arranged-vertically.png and b/docs/view/Card/screenshots/with-divider-arranged-vertically.png differ diff --git a/docs/view/Card/screenshots/with-divider-arranged-vertically_dm.png b/docs/view/Card/screenshots/with-divider-arranged-vertically_dm.png index e0be3c5d5..0fe9fe6c0 100644 Binary files a/docs/view/Card/screenshots/with-divider-arranged-vertically_dm.png and b/docs/view/Card/screenshots/with-divider-arranged-vertically_dm.png differ diff --git a/docs/view/Card/screenshots/with-divider-without-padding.png b/docs/view/Card/screenshots/with-divider-without-padding.png index d5d84e4f0..dcb716ada 100644 Binary files a/docs/view/Card/screenshots/with-divider-without-padding.png and b/docs/view/Card/screenshots/with-divider-without-padding.png differ diff --git a/docs/view/Card/screenshots/with-divider-without-padding_dm.png b/docs/view/Card/screenshots/with-divider-without-padding_dm.png index d36aafb51..a3e835fe9 100644 Binary files a/docs/view/Card/screenshots/with-divider-without-padding_dm.png and b/docs/view/Card/screenshots/with-divider-without-padding_dm.png differ diff --git a/docs/view/Card/screenshots/with-divider.png b/docs/view/Card/screenshots/with-divider.png index ec2ad4282..81f979df9 100644 Binary files a/docs/view/Card/screenshots/with-divider.png and b/docs/view/Card/screenshots/with-divider.png differ diff --git a/docs/view/Card/screenshots/with-divider_dm.png b/docs/view/Card/screenshots/with-divider_dm.png index 3698cbab9..e22c7d616 100644 Binary files a/docs/view/Card/screenshots/with-divider_dm.png and b/docs/view/Card/screenshots/with-divider_dm.png differ diff --git a/docs/view/Card/screenshots/without-padding.png b/docs/view/Card/screenshots/without-padding.png index d10502ac1..c37e16643 100644 Binary files a/docs/view/Card/screenshots/without-padding.png and b/docs/view/Card/screenshots/without-padding.png differ diff --git a/docs/view/Card/screenshots/without-padding_dm.png b/docs/view/Card/screenshots/without-padding_dm.png index 7f598841b..cbb0edf13 100644 Binary files a/docs/view/Card/screenshots/without-padding_dm.png and b/docs/view/Card/screenshots/without-padding_dm.png differ diff --git a/docs/view/Checkbox/screenshots/default.png b/docs/view/Checkbox/screenshots/default.png index 02d4a7dd5..91b48fc96 100644 Binary files a/docs/view/Checkbox/screenshots/default.png and b/docs/view/Checkbox/screenshots/default.png differ diff --git a/docs/view/Checkbox/screenshots/default_dm.png b/docs/view/Checkbox/screenshots/default_dm.png index d91c6ffc9..b91218dcb 100644 Binary files a/docs/view/Checkbox/screenshots/default_dm.png and b/docs/view/Checkbox/screenshots/default_dm.png differ diff --git a/docs/view/Chip/screenshots/default.png b/docs/view/Chip/screenshots/default.png index 6fee7e897..bbaf8976f 100644 Binary files a/docs/view/Chip/screenshots/default.png and b/docs/view/Chip/screenshots/default.png differ diff --git a/docs/view/Chip/screenshots/default_dm.png b/docs/view/Chip/screenshots/default_dm.png index b649cd43d..e3b23fdba 100644 Binary files a/docs/view/Chip/screenshots/default_dm.png and b/docs/view/Chip/screenshots/default_dm.png differ diff --git a/docs/view/Chip/screenshots/on-dark.png b/docs/view/Chip/screenshots/on-dark.png index 70c1cd492..c310a7ddc 100644 Binary files a/docs/view/Chip/screenshots/on-dark.png and b/docs/view/Chip/screenshots/on-dark.png differ diff --git a/docs/view/Chip/screenshots/on-dark_dm.png b/docs/view/Chip/screenshots/on-dark_dm.png index 4612007d1..ef89be563 100644 Binary files a/docs/view/Chip/screenshots/on-dark_dm.png and b/docs/view/Chip/screenshots/on-dark_dm.png differ diff --git a/docs/view/Chip/screenshots/on-image.png b/docs/view/Chip/screenshots/on-image.png index f670034b1..28053f1e3 100644 Binary files a/docs/view/Chip/screenshots/on-image.png and b/docs/view/Chip/screenshots/on-image.png differ diff --git a/docs/view/Chip/screenshots/on-image_dm.png b/docs/view/Chip/screenshots/on-image_dm.png index 90bc2dd42..dbdf618b1 100644 Binary files a/docs/view/Chip/screenshots/on-image_dm.png and b/docs/view/Chip/screenshots/on-image_dm.png differ diff --git a/docs/view/Dialog/screenshots/destructive.png b/docs/view/Dialog/screenshots/destructive.png index f20cacd1f..390f61ce4 100644 Binary files a/docs/view/Dialog/screenshots/destructive.png and b/docs/view/Dialog/screenshots/destructive.png differ diff --git a/docs/view/Dialog/screenshots/destructive_dm.png b/docs/view/Dialog/screenshots/destructive_dm.png index 40f734803..56c3d9772 100644 Binary files a/docs/view/Dialog/screenshots/destructive_dm.png and b/docs/view/Dialog/screenshots/destructive_dm.png differ diff --git a/docs/view/Dialog/screenshots/flare.png b/docs/view/Dialog/screenshots/flare.png index f85134ae3..dbba83e7f 100644 Binary files a/docs/view/Dialog/screenshots/flare.png and b/docs/view/Dialog/screenshots/flare.png differ diff --git a/docs/view/Dialog/screenshots/flare_dm.png b/docs/view/Dialog/screenshots/flare_dm.png index adc5f752f..f89877e2a 100644 Binary files a/docs/view/Dialog/screenshots/flare_dm.png and b/docs/view/Dialog/screenshots/flare_dm.png differ diff --git a/docs/view/Dialog/screenshots/success-three-buttons.png b/docs/view/Dialog/screenshots/success-three-buttons.png index 4d2096a5d..9b3400772 100644 Binary files a/docs/view/Dialog/screenshots/success-three-buttons.png and b/docs/view/Dialog/screenshots/success-three-buttons.png differ diff --git a/docs/view/Dialog/screenshots/success-three-buttons_dm.png b/docs/view/Dialog/screenshots/success-three-buttons_dm.png index c191d5e34..b7277938c 100644 Binary files a/docs/view/Dialog/screenshots/success-three-buttons_dm.png and b/docs/view/Dialog/screenshots/success-three-buttons_dm.png differ diff --git a/docs/view/Flare/screenshots/default.png b/docs/view/Flare/screenshots/default.png index 7c2576761..e39186be5 100644 Binary files a/docs/view/Flare/screenshots/default.png and b/docs/view/Flare/screenshots/default.png differ diff --git a/docs/view/Flare/screenshots/default_dm.png b/docs/view/Flare/screenshots/default_dm.png index 4c501bbfa..6ff3fe2cf 100644 Binary files a/docs/view/Flare/screenshots/default_dm.png and b/docs/view/Flare/screenshots/default_dm.png differ diff --git a/docs/view/Flare/screenshots/inset-padding-mode.png b/docs/view/Flare/screenshots/inset-padding-mode.png index 09bc14785..f7571cb36 100644 Binary files a/docs/view/Flare/screenshots/inset-padding-mode.png and b/docs/view/Flare/screenshots/inset-padding-mode.png differ diff --git a/docs/view/Flare/screenshots/inset-padding-mode_dm.png b/docs/view/Flare/screenshots/inset-padding-mode_dm.png index 598ca2c1b..e73bf2229 100644 Binary files a/docs/view/Flare/screenshots/inset-padding-mode_dm.png and b/docs/view/Flare/screenshots/inset-padding-mode_dm.png differ diff --git a/docs/view/Flare/screenshots/pointer-offset.png b/docs/view/Flare/screenshots/pointer-offset.png index 6e310c55b..a733a1110 100644 Binary files a/docs/view/Flare/screenshots/pointer-offset.png and b/docs/view/Flare/screenshots/pointer-offset.png differ diff --git a/docs/view/Flare/screenshots/pointer-offset_dm.png b/docs/view/Flare/screenshots/pointer-offset_dm.png index a233646b1..74e41c0f2 100644 Binary files a/docs/view/Flare/screenshots/pointer-offset_dm.png and b/docs/view/Flare/screenshots/pointer-offset_dm.png differ diff --git a/docs/view/Flare/screenshots/pointing-up.png b/docs/view/Flare/screenshots/pointing-up.png index 892f2fb50..8d81f540e 100644 Binary files a/docs/view/Flare/screenshots/pointing-up.png and b/docs/view/Flare/screenshots/pointing-up.png differ diff --git a/docs/view/Flare/screenshots/pointing-up_dm.png b/docs/view/Flare/screenshots/pointing-up_dm.png index 60120058c..0d13fa38e 100644 Binary files a/docs/view/Flare/screenshots/pointing-up_dm.png and b/docs/view/Flare/screenshots/pointing-up_dm.png differ diff --git a/docs/view/Flare/screenshots/rounded.png b/docs/view/Flare/screenshots/rounded.png index 9a91941b7..15ccc8817 100644 Binary files a/docs/view/Flare/screenshots/rounded.png and b/docs/view/Flare/screenshots/rounded.png differ diff --git a/docs/view/Flare/screenshots/rounded_dm.png b/docs/view/Flare/screenshots/rounded_dm.png index b3089c516..e9dd34d0f 100644 Binary files a/docs/view/Flare/screenshots/rounded_dm.png and b/docs/view/Flare/screenshots/rounded_dm.png differ diff --git a/docs/view/FloatingActionButton/screenshots/default.png b/docs/view/FloatingActionButton/screenshots/default.png index c7e6449e0..30bac2382 100644 Binary files a/docs/view/FloatingActionButton/screenshots/default.png and b/docs/view/FloatingActionButton/screenshots/default.png differ diff --git a/docs/view/FloatingActionButton/screenshots/default_dm.png b/docs/view/FloatingActionButton/screenshots/default_dm.png index 1e83c6509..aae8d8489 100644 Binary files a/docs/view/FloatingActionButton/screenshots/default_dm.png and b/docs/view/FloatingActionButton/screenshots/default_dm.png differ diff --git a/docs/view/HorizontalNav/screenshots/default.png b/docs/view/HorizontalNav/screenshots/default.png index f9d637dd2..11b0888cc 100644 Binary files a/docs/view/HorizontalNav/screenshots/default.png and b/docs/view/HorizontalNav/screenshots/default.png differ diff --git a/docs/view/HorizontalNav/screenshots/default_dm.png b/docs/view/HorizontalNav/screenshots/default_dm.png index e48961a8d..a1c16612b 100644 Binary files a/docs/view/HorizontalNav/screenshots/default_dm.png and b/docs/view/HorizontalNav/screenshots/default_dm.png differ diff --git a/docs/view/Icon/screenshots/default.png b/docs/view/Icon/screenshots/default.png index 732df0aef..223361c91 100644 Binary files a/docs/view/Icon/screenshots/default.png and b/docs/view/Icon/screenshots/default.png differ diff --git a/docs/view/Icon/screenshots/default_dm.png b/docs/view/Icon/screenshots/default_dm.png index 5c28d51a3..644b11301 100644 Binary files a/docs/view/Icon/screenshots/default_dm.png and b/docs/view/Icon/screenshots/default_dm.png differ diff --git a/docs/view/Icon/screenshots/small.png b/docs/view/Icon/screenshots/small.png index b22a8cba5..12fff3bfa 100644 Binary files a/docs/view/Icon/screenshots/small.png and b/docs/view/Icon/screenshots/small.png differ diff --git a/docs/view/Icon/screenshots/small_dm.png b/docs/view/Icon/screenshots/small_dm.png index e4970a7f5..f050612cd 100644 Binary files a/docs/view/Icon/screenshots/small_dm.png and b/docs/view/Icon/screenshots/small_dm.png differ diff --git a/docs/view/NavBar/screenshots/collapsed.png b/docs/view/NavBar/screenshots/collapsed.png index 50c2f2d46..2963f37ee 100644 Binary files a/docs/view/NavBar/screenshots/collapsed.png and b/docs/view/NavBar/screenshots/collapsed.png differ diff --git a/docs/view/NavBar/screenshots/collapsed_dm.png b/docs/view/NavBar/screenshots/collapsed_dm.png index 258601b0b..da035ae3f 100644 Binary files a/docs/view/NavBar/screenshots/collapsed_dm.png and b/docs/view/NavBar/screenshots/collapsed_dm.png differ diff --git a/docs/view/NavBar/screenshots/default.png b/docs/view/NavBar/screenshots/default.png index 7cd937c4b..be96259e6 100644 Binary files a/docs/view/NavBar/screenshots/default.png and b/docs/view/NavBar/screenshots/default.png differ diff --git a/docs/view/NavBar/screenshots/default_dm.png b/docs/view/NavBar/screenshots/default_dm.png index b6b9809e1..c2c594e10 100644 Binary files a/docs/view/NavBar/screenshots/default_dm.png and b/docs/view/NavBar/screenshots/default_dm.png differ diff --git a/docs/view/NavBar/screenshots/with-menu.png b/docs/view/NavBar/screenshots/with-menu.png index e19334cff..9d5024870 100644 Binary files a/docs/view/NavBar/screenshots/with-menu.png and b/docs/view/NavBar/screenshots/with-menu.png differ diff --git a/docs/view/NavBar/screenshots/with-menu_dm.png b/docs/view/NavBar/screenshots/with-menu_dm.png index 2ed7872df..ad02f5619 100644 Binary files a/docs/view/NavBar/screenshots/with-menu_dm.png and b/docs/view/NavBar/screenshots/with-menu_dm.png differ diff --git a/docs/view/Nudger/screenshots/default.png b/docs/view/Nudger/screenshots/default.png index 30f08f9e3..2a1ead080 100644 Binary files a/docs/view/Nudger/screenshots/default.png and b/docs/view/Nudger/screenshots/default.png differ diff --git a/docs/view/Nudger/screenshots/default_dm.png b/docs/view/Nudger/screenshots/default_dm.png index 16e24ecb7..343e0b1e3 100644 Binary files a/docs/view/Nudger/screenshots/default_dm.png and b/docs/view/Nudger/screenshots/default_dm.png differ diff --git a/docs/view/Overlay/screenshots/default.png b/docs/view/Overlay/screenshots/default.png index 878ef2cd8..260624bec 100644 Binary files a/docs/view/Overlay/screenshots/default.png and b/docs/view/Overlay/screenshots/default.png differ diff --git a/docs/view/Overlay/screenshots/default_dm.png b/docs/view/Overlay/screenshots/default_dm.png index e36712e65..39f3eefe2 100644 Binary files a/docs/view/Overlay/screenshots/default_dm.png and b/docs/view/Overlay/screenshots/default_dm.png differ diff --git a/docs/view/Panel/screenshots/default.png b/docs/view/Panel/screenshots/default.png index dd204c154..71e19b422 100644 Binary files a/docs/view/Panel/screenshots/default.png and b/docs/view/Panel/screenshots/default.png differ diff --git a/docs/view/Panel/screenshots/default_dm.png b/docs/view/Panel/screenshots/default_dm.png index 1ff0250c6..4c06e5397 100644 Binary files a/docs/view/Panel/screenshots/default_dm.png and b/docs/view/Panel/screenshots/default_dm.png differ diff --git a/docs/view/RadioButton/screenshots/default.png b/docs/view/RadioButton/screenshots/default.png index 1e65df5a0..a8da0c8fc 100644 Binary files a/docs/view/RadioButton/screenshots/default.png and b/docs/view/RadioButton/screenshots/default.png differ diff --git a/docs/view/RadioButton/screenshots/default_dm.png b/docs/view/RadioButton/screenshots/default_dm.png index f04691c5b..e611393c3 100644 Binary files a/docs/view/RadioButton/screenshots/default_dm.png and b/docs/view/RadioButton/screenshots/default_dm.png differ diff --git a/docs/view/Rating/screenshots/default.png b/docs/view/Rating/screenshots/default.png index 5f47fcfee..898aecceb 100644 Binary files a/docs/view/Rating/screenshots/default.png and b/docs/view/Rating/screenshots/default.png differ diff --git a/docs/view/Rating/screenshots/default_dm.png b/docs/view/Rating/screenshots/default_dm.png index a42b919de..83e5e233d 100644 Binary files a/docs/view/Rating/screenshots/default_dm.png and b/docs/view/Rating/screenshots/default_dm.png differ diff --git a/docs/view/Rating/screenshots/horizontal.png b/docs/view/Rating/screenshots/horizontal.png index d5e2d2e74..33ab28bcb 100644 Binary files a/docs/view/Rating/screenshots/horizontal.png and b/docs/view/Rating/screenshots/horizontal.png differ diff --git a/docs/view/Rating/screenshots/horizontal_dm.png b/docs/view/Rating/screenshots/horizontal_dm.png index d960a4a68..bb93db0f7 100644 Binary files a/docs/view/Rating/screenshots/horizontal_dm.png and b/docs/view/Rating/screenshots/horizontal_dm.png differ diff --git a/docs/view/Rating/screenshots/pill.png b/docs/view/Rating/screenshots/pill.png index e7a7c1aa4..bf97cf80f 100644 Binary files a/docs/view/Rating/screenshots/pill.png and b/docs/view/Rating/screenshots/pill.png differ diff --git a/docs/view/Rating/screenshots/pill_dm.png b/docs/view/Rating/screenshots/pill_dm.png index 0ca3feaf7..e3fe03984 100644 Binary files a/docs/view/Rating/screenshots/pill_dm.png and b/docs/view/Rating/screenshots/pill_dm.png differ diff --git a/docs/view/Rating/screenshots/vertical.png b/docs/view/Rating/screenshots/vertical.png index 4feb5ba5a..61afcebbf 100644 Binary files a/docs/view/Rating/screenshots/vertical.png and b/docs/view/Rating/screenshots/vertical.png differ diff --git a/docs/view/Rating/screenshots/vertical_dm.png b/docs/view/Rating/screenshots/vertical_dm.png index 2587f8d6e..b661f599e 100644 Binary files a/docs/view/Rating/screenshots/vertical_dm.png and b/docs/view/Rating/screenshots/vertical_dm.png differ diff --git a/docs/view/Skeleton/screenshots/default.png b/docs/view/Skeleton/screenshots/default.png index 5a8dcfe97..43de2b892 100644 Binary files a/docs/view/Skeleton/screenshots/default.png and b/docs/view/Skeleton/screenshots/default.png differ diff --git a/docs/view/Skeleton/screenshots/default_dm.png b/docs/view/Skeleton/screenshots/default_dm.png index 229a293c7..c98c8e27e 100644 Binary files a/docs/view/Skeleton/screenshots/default_dm.png and b/docs/view/Skeleton/screenshots/default_dm.png differ diff --git a/docs/view/Slider/screenshots/default.png b/docs/view/Slider/screenshots/default.png index 083ab0a3c..4267e9437 100644 Binary files a/docs/view/Slider/screenshots/default.png and b/docs/view/Slider/screenshots/default.png differ diff --git a/docs/view/Slider/screenshots/default_dm.png b/docs/view/Slider/screenshots/default_dm.png index 3da4e1593..e37da6aab 100644 Binary files a/docs/view/Slider/screenshots/default_dm.png and b/docs/view/Slider/screenshots/default_dm.png differ diff --git a/docs/view/Snackbar/screenshots/default.png b/docs/view/Snackbar/screenshots/default.png index 8ae0c4677..234846284 100644 Binary files a/docs/view/Snackbar/screenshots/default.png and b/docs/view/Snackbar/screenshots/default.png differ diff --git a/docs/view/Snackbar/screenshots/default_dm.png b/docs/view/Snackbar/screenshots/default_dm.png index d971bf329..0f6a7d674 100644 Binary files a/docs/view/Snackbar/screenshots/default_dm.png and b/docs/view/Snackbar/screenshots/default_dm.png differ diff --git a/docs/view/Snackbar/screenshots/icon.png b/docs/view/Snackbar/screenshots/icon.png index e3d749e44..1f122519c 100644 Binary files a/docs/view/Snackbar/screenshots/icon.png and b/docs/view/Snackbar/screenshots/icon.png differ diff --git a/docs/view/Snackbar/screenshots/icon_dm.png b/docs/view/Snackbar/screenshots/icon_dm.png index 3957a8512..aa325a998 100644 Binary files a/docs/view/Snackbar/screenshots/icon_dm.png and b/docs/view/Snackbar/screenshots/icon_dm.png differ diff --git a/docs/view/Spinner/screenshots/default.png b/docs/view/Spinner/screenshots/default.png index 92577aae5..342f1400d 100644 Binary files a/docs/view/Spinner/screenshots/default.png and b/docs/view/Spinner/screenshots/default.png differ diff --git a/docs/view/Spinner/screenshots/default_dm.png b/docs/view/Spinner/screenshots/default_dm.png index b5859a281..28481a066 100644 Binary files a/docs/view/Spinner/screenshots/default_dm.png and b/docs/view/Spinner/screenshots/default_dm.png differ diff --git a/docs/view/StarRating/screenshots/default.png b/docs/view/StarRating/screenshots/default.png index acb59b536..f7c1ce726 100644 Binary files a/docs/view/StarRating/screenshots/default.png and b/docs/view/StarRating/screenshots/default.png differ diff --git a/docs/view/StarRating/screenshots/default_dm.png b/docs/view/StarRating/screenshots/default_dm.png index b851ad9bb..b2fc285b4 100644 Binary files a/docs/view/StarRating/screenshots/default_dm.png and b/docs/view/StarRating/screenshots/default_dm.png differ diff --git a/docs/view/StarRatingInteractive/screenshots/default.png b/docs/view/StarRatingInteractive/screenshots/default.png index 03b8b4d00..908611687 100644 Binary files a/docs/view/StarRatingInteractive/screenshots/default.png and b/docs/view/StarRatingInteractive/screenshots/default.png differ diff --git a/docs/view/StarRatingInteractive/screenshots/default_dm.png b/docs/view/StarRatingInteractive/screenshots/default_dm.png index 5602e31d1..1bce5eef5 100644 Binary files a/docs/view/StarRatingInteractive/screenshots/default_dm.png and b/docs/view/StarRatingInteractive/screenshots/default_dm.png differ diff --git a/docs/view/Switch/screenshots/default.png b/docs/view/Switch/screenshots/default.png index 3e06fdf9b..3d230d719 100644 Binary files a/docs/view/Switch/screenshots/default.png and b/docs/view/Switch/screenshots/default.png differ diff --git a/docs/view/Switch/screenshots/default_dm.png b/docs/view/Switch/screenshots/default_dm.png index 0447feb42..1c67f6e0a 100644 Binary files a/docs/view/Switch/screenshots/default_dm.png and b/docs/view/Switch/screenshots/default_dm.png differ diff --git a/docs/view/Text/screenshots/body.png b/docs/view/Text/screenshots/body.png index 32d713de6..b380fe280 100644 Binary files a/docs/view/Text/screenshots/body.png and b/docs/view/Text/screenshots/body.png differ diff --git a/docs/view/Text/screenshots/body_dm.png b/docs/view/Text/screenshots/body_dm.png index 749505250..0daf470e4 100644 Binary files a/docs/view/Text/screenshots/body_dm.png and b/docs/view/Text/screenshots/body_dm.png differ diff --git a/docs/view/Text/screenshots/heading.png b/docs/view/Text/screenshots/heading.png index fbecb9ebd..67a481cb3 100644 Binary files a/docs/view/Text/screenshots/heading.png and b/docs/view/Text/screenshots/heading.png differ diff --git a/docs/view/Text/screenshots/heading_dm.png b/docs/view/Text/screenshots/heading_dm.png index 3f9037e1e..bf3209bbe 100644 Binary files a/docs/view/Text/screenshots/heading_dm.png and b/docs/view/Text/screenshots/heading_dm.png differ diff --git a/docs/view/Text/screenshots/hero.png b/docs/view/Text/screenshots/hero.png index 42517da52..e756f968c 100644 Binary files a/docs/view/Text/screenshots/hero.png and b/docs/view/Text/screenshots/hero.png differ diff --git a/docs/view/Text/screenshots/hero_dm.png b/docs/view/Text/screenshots/hero_dm.png index e9b430a44..0b26d22b6 100644 Binary files a/docs/view/Text/screenshots/hero_dm.png and b/docs/view/Text/screenshots/hero_dm.png differ diff --git a/docs/view/TextField/screenshots/default.png b/docs/view/TextField/screenshots/default.png index 8400ef578..1f9fdf505 100644 Binary files a/docs/view/TextField/screenshots/default.png and b/docs/view/TextField/screenshots/default.png differ diff --git a/docs/view/TextField/screenshots/default_dm.png b/docs/view/TextField/screenshots/default_dm.png index e3d0ee5c3..9793aa722 100644 Binary files a/docs/view/TextField/screenshots/default_dm.png and b/docs/view/TextField/screenshots/default_dm.png differ diff --git a/docs/view/TextField/screenshots/with-labels.png b/docs/view/TextField/screenshots/with-labels.png index b7956bc28..e7e25b33e 100644 Binary files a/docs/view/TextField/screenshots/with-labels.png and b/docs/view/TextField/screenshots/with-labels.png differ diff --git a/docs/view/TextField/screenshots/with-labels_dm.png b/docs/view/TextField/screenshots/with-labels_dm.png index 177ca1762..879c66d8f 100644 Binary files a/docs/view/TextField/screenshots/with-labels_dm.png and b/docs/view/TextField/screenshots/with-labels_dm.png differ diff --git a/docs/view/TextSpans/screenshots/default.png b/docs/view/TextSpans/screenshots/default.png index f361bd40e..6a1659769 100644 Binary files a/docs/view/TextSpans/screenshots/default.png and b/docs/view/TextSpans/screenshots/default.png differ diff --git a/docs/view/TextSpans/screenshots/default_dm.png b/docs/view/TextSpans/screenshots/default_dm.png index 715262b5d..72913a163 100644 Binary files a/docs/view/TextSpans/screenshots/default_dm.png and b/docs/view/TextSpans/screenshots/default_dm.png differ diff --git a/docs/view/Toast/screenshots/default.png b/docs/view/Toast/screenshots/default.png index c183feca2..0a44f6c6e 100644 Binary files a/docs/view/Toast/screenshots/default.png and b/docs/view/Toast/screenshots/default.png differ diff --git a/docs/view/Toast/screenshots/default_dm.png b/docs/view/Toast/screenshots/default_dm.png index 58b606eed..5b66ba0ce 100644 Binary files a/docs/view/Toast/screenshots/default_dm.png and b/docs/view/Toast/screenshots/default_dm.png differ diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b81bed857..2e80028bd 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,6 +15,7 @@ lifecycle = "2.6.1" threeTenAbp = "1.4.5" androidXJunit = "1.1.5" coroutines = "1.7.1" +kotlinPoet = "1.14.2" [libraries] @@ -37,8 +38,6 @@ androidx-constraintLayout = "androidx.constraintlayout:constraintlayout:2.1.4" androidx-swiperefreshLayout = "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" androidx-coreKts = "androidx.core:core-ktx:1.10.1" -androidx-roomCompilerProcessing = "androidx.room:room-compiler-processing:2.5.1" - androidx-lifecycleKtx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycle" } androidx-lifecycleViewmodel = { module = "androidx.lifecycle:lifecycle-viewmodel", version.ref = "lifecycle" } androidx-lifecycleViewmodelKtx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "lifecycle" } @@ -66,7 +65,8 @@ google-kspApi = { module = "com.google.devtools.ksp:symbol-processing-api", vers google-guava = "com.google.guava:guava:32.0.1-jre" square-picasso = "com.squareup.picasso:picasso:2.71828" -square-kotlinPoet = "com.squareup:kotlinpoet:1.14.2" +square-kotlinPoet = { module = "com.squareup:kotlinpoet", version.ref = "kotlinPoet" } +square-kotlinPoetKsp = { module = "com.squareup:kotlinpoet-ksp", version.ref = "kotlinPoet" } kotlin-reflection = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" } kotlin-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" } diff --git a/meta/processor/build.gradle b/meta/processor/build.gradle index dbd430b28..4e9632380 100644 --- a/meta/processor/build.gradle +++ b/meta/processor/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'kotlin' dependencies { implementation libs.google.kspApi implementation libs.square.kotlinPoet - implementation libs.androidx.roomCompilerProcessing + implementation libs.square.kotlinPoetKsp implementation project(":meta:annotations") testImplementation libs.test.junit testImplementation libs.kotlin.compilerTesting diff --git a/meta/processor/src/main/kotlin/net/skyscanner/backpack/ksp/BackpackSymbolProcessor.kt b/meta/processor/src/main/kotlin/net/skyscanner/backpack/ksp/BackpackSymbolProcessor.kt index fa7257c7a..d1f3e4cc6 100644 --- a/meta/processor/src/main/kotlin/net/skyscanner/backpack/ksp/BackpackSymbolProcessor.kt +++ b/meta/processor/src/main/kotlin/net/skyscanner/backpack/ksp/BackpackSymbolProcessor.kt @@ -18,8 +18,6 @@ package net.skyscanner.backpack.ksp -import androidx.room.compiler.processing.ExperimentalProcessingApi -import androidx.room.compiler.processing.XProcessingEnv import com.google.devtools.ksp.processing.Resolver import com.google.devtools.ksp.processing.SymbolProcessor import com.google.devtools.ksp.processing.SymbolProcessorEnvironment @@ -33,7 +31,6 @@ import net.skyscanner.backpack.ksp.writer.writeListOfStories import net.skyscanner.backpack.meta.ComponentMarker import net.skyscanner.backpack.meta.StoryMarker -@OptIn(ExperimentalProcessingApi::class) class BackpackSymbolProcessor( private val environment: SymbolProcessorEnvironment, ) : SymbolProcessor { @@ -43,8 +40,6 @@ class BackpackSymbolProcessor( override fun process(resolver: Resolver): List { if (invoked) return emptyList() - val filer = XProcessingEnv.create(environment.options, resolver, environment.codeGenerator, environment.logger).filer - val components = resolver .getSymbolsWithAnnotation(ComponentMarker::class.qualifiedName!!) .filter { it.validate() } @@ -65,7 +60,7 @@ class BackpackSymbolProcessor( .mapNotNull { it.accept(StoriesVisitor(annotation), components) } } - writeListOfStories(stories.toList(), filer) + writeListOfStories(stories.toList(), environment.codeGenerator) invoked = true return emptyList() diff --git a/meta/processor/src/main/kotlin/net/skyscanner/backpack/ksp/writer/StoriesWriter.kt b/meta/processor/src/main/kotlin/net/skyscanner/backpack/ksp/writer/StoriesWriter.kt index b9dda6139..28ff63550 100644 --- a/meta/processor/src/main/kotlin/net/skyscanner/backpack/ksp/writer/StoriesWriter.kt +++ b/meta/processor/src/main/kotlin/net/skyscanner/backpack/ksp/writer/StoriesWriter.kt @@ -18,48 +18,57 @@ package net.skyscanner.backpack.ksp.writer -import androidx.room.compiler.processing.XFiler -import androidx.room.compiler.processing.writeTo +import com.google.devtools.ksp.processing.CodeGenerator import com.squareup.kotlinpoet.ClassName import com.squareup.kotlinpoet.CodeBlock import com.squareup.kotlinpoet.FileSpec import com.squareup.kotlinpoet.FunSpec +import com.squareup.kotlinpoet.KModifier import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy +import com.squareup.kotlinpoet.TypeSpec import com.squareup.kotlinpoet.asClassName +import com.squareup.kotlinpoet.ksp.writeTo import net.skyscanner.backpack.ksp.ComponentDefinition import net.skyscanner.backpack.ksp.StoryDefinition private const val MetaPackage = "net.skyscanner.backpack.demo.meta" private val StoryClass = ClassName(MetaPackage, "Story") -private val StoryCompanion = ClassName(MetaPackage, "Story.Companion") private val ComponentClass = ClassName(MetaPackage, "Component") private val StoriesClass = List::class.asClassName().parameterizedBy(StoryClass) -fun writeListOfStories(stories: List, output: XFiler) { - FunSpec - .builder("all") - .receiver(StoryCompanion) - .returns(StoriesClass) - .addCode(CodeBlock - .builder() - .add("return listOf(\n") - .indent() - .apply { - stories.forEach { - writeStoryCreator(it) - } - } - .unindent() - .add(")") - .build(), +fun writeListOfStories(stories: List, output: CodeGenerator) { + if (stories.isEmpty()) return + + TypeSpec + .objectBuilder("KspGeneratedStories") + .addModifiers(KModifier.INTERNAL) + .addFunction( + FunSpec + .builder("list") + .returns(StoriesClass) + .addCode( + CodeBlock + .builder() + .add("return listOf(\n") + .indent() + .apply { + stories.forEach { + writeStoryCreator(it) + } + } + .unindent() + .add(")") + .build(), + ) + .build(), ) .build() .let { FileSpec - .builder(MetaPackage, "GeneratedStories") - .addFunction(it) + .builder(MetaPackage, "KspGeneratedStories") + .addType(it) .build() - .writeTo(output, mode = XFiler.Mode.Aggregating) + .writeTo(codeGenerator = output, aggregating = true) } } diff --git a/meta/processor/src/test/java/net/skyscanner/backpack/ksp/Extensions.kt b/meta/processor/src/test/java/net/skyscanner/backpack/ksp/Extensions.kt index 5a514ccb7..d726b2e74 100644 --- a/meta/processor/src/test/java/net/skyscanner/backpack/ksp/Extensions.kt +++ b/meta/processor/src/test/java/net/skyscanner/backpack/ksp/Extensions.kt @@ -37,7 +37,7 @@ internal fun testKsp( } val result = compilation.compile() require(result.exitCode == KotlinCompilation.ExitCode.OK) { result.messages } - val generatedStories = compilation.kspSourcesDir.walkTopDown().first { it.name == "GeneratedStories.kt" } + val generatedStories = compilation.kspSourcesDir.walkTopDown().first { it.name == "KspGeneratedStories.kt" } evaluate(result, generatedStories.readText()) } diff --git a/meta/processor/src/test/java/net/skyscanner/backpack/ksp/ProcessorTests.kt b/meta/processor/src/test/java/net/skyscanner/backpack/ksp/ProcessorTests.kt index f8efb1b7e..0170579c1 100644 --- a/meta/processor/src/test/java/net/skyscanner/backpack/ksp/ProcessorTests.kt +++ b/meta/processor/src/test/java/net/skyscanner/backpack/ksp/ProcessorTests.kt @@ -50,18 +50,20 @@ class ProcessorTests { import kotlin.collections.List import net.skyscanner.backpack.meta.StoryKind - public fun Story.Companion.all(): List = listOf( - Story( - name = "Default", - kind = StoryKind.StoryAndScreenshot, - isCompose = false, - component = Component( - name = "Floating Action Button", - isToken = false, + internal object KspGeneratedStories { + public fun list(): List = listOf( + Story( + name = "Default", + kind = StoryKind.StoryAndScreenshot, + isCompose = false, + component = Component( + name = "Floating Action Button", + isToken = false, + ), + content = { FabStory() }, ), - content = { FabStory() }, - ), - ) + ) + } """ testKsp(input, output) @@ -95,18 +97,20 @@ class ProcessorTests { import kotlin.collections.List import net.skyscanner.backpack.meta.StoryKind - public fun Story.Companion.all(): List = listOf( - Story( - name = "Default", - kind = StoryKind.StoryAndScreenshot, - isCompose = true, - component = Component( - name = "Floating Action Button", - isToken = false, + internal object KspGeneratedStories { + public fun list(): List = listOf( + Story( + name = "Default", + kind = StoryKind.StoryAndScreenshot, + isCompose = true, + component = Component( + name = "Floating Action Button", + isToken = false, + ), + content = { FabStory() }, ), - content = { FabStory() }, - ), - ) + ) + } """ testKsp(input, output) @@ -140,18 +144,20 @@ class ProcessorTests { import kotlin.collections.List import net.skyscanner.backpack.meta.StoryKind - public fun Story.Companion.all(): List = listOf( - Story( - name = "Custom name", - kind = StoryKind.StoryAndScreenshot, - isCompose = true, - component = Component( - name = "Floating Action Button", - isToken = false, + internal object KspGeneratedStories { + public fun list(): List = listOf( + Story( + name = "Custom name", + kind = StoryKind.StoryAndScreenshot, + isCompose = true, + component = Component( + name = "Floating Action Button", + isToken = false, + ), + content = { FabStory() }, ), - content = { FabStory() }, - ), - ) + ) + } """ testKsp(input, output) @@ -185,18 +191,20 @@ class ProcessorTests { import kotlin.collections.List import net.skyscanner.backpack.meta.StoryKind - public fun Story.Companion.all(): List = listOf( - Story( - name = "Default", - kind = StoryKind.DemoOnly, - isCompose = true, - component = Component( - name = "Floating Action Button", - isToken = false, + internal object KspGeneratedStories { + public fun list(): List = listOf( + Story( + name = "Default", + kind = StoryKind.DemoOnly, + isCompose = true, + component = Component( + name = "Floating Action Button", + isToken = false, + ), + content = { FabStory() }, ), - content = { FabStory() }, - ), - ) + ) + } """ testKsp(input, output) @@ -230,18 +238,20 @@ class ProcessorTests { import kotlin.collections.List import net.skyscanner.backpack.meta.StoryKind - public fun Story.Companion.all(): List = listOf( - Story( - name = "Default", - kind = StoryKind.ScreenshotOnly, - isCompose = true, - component = Component( - name = "Floating Action Button", - isToken = false, + internal object KspGeneratedStories { + public fun list(): List = listOf( + Story( + name = "Default", + kind = StoryKind.ScreenshotOnly, + isCompose = true, + component = Component( + name = "Floating Action Button", + isToken = false, + ), + content = { FabStory() }, ), - content = { FabStory() }, - ), - ) + ) + } """ testKsp(input, output) @@ -275,18 +285,20 @@ class ProcessorTests { import kotlin.collections.List import net.skyscanner.backpack.meta.StoryKind - public fun Story.Companion.all(): List = listOf( - Story( - name = "Default", - kind = StoryKind.StoryAndScreenshot, - isCompose = true, - component = Component( - name = "Floating Action Button", - isToken = true, + internal object KspGeneratedStories { + public fun list(): List = listOf( + Story( + name = "Default", + kind = StoryKind.StoryAndScreenshot, + isCompose = true, + component = Component( + name = "Floating Action Button", + isToken = true, + ), + content = { FabStory() }, ), - content = { FabStory() }, - ), - ) + ) + } """ testKsp(input, output)