File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
core/designsystem/src/main/kotlin/com/skydoves/pokedex/compose/core/designsystem/theme Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,20 @@ import androidx.compose.ui.unit.dp
2727import com.skydoves.pokedex.compose.designsystem.R
2828
2929@Immutable
30- public data class PokdexBackground (
30+ public data class PokedexBackground (
3131 val color : Color = Color .Unspecified ,
3232 val tonalElevation : Dp = Dp .Unspecified ,
3333) {
3434 public companion object {
3535 @Composable
36- public fun defaultBackground (darkTheme : Boolean ): PokdexBackground {
36+ public fun defaultBackground (darkTheme : Boolean ): PokedexBackground {
3737 return if (darkTheme) {
38- PokdexBackground (
38+ PokedexBackground (
3939 color = colorResource(id = R .color.background_dark),
4040 tonalElevation = 0 .dp,
4141 )
4242 } else {
43- PokdexBackground (
43+ PokedexBackground (
4444 color = colorResource(id = R .color.background),
4545 tonalElevation = 0 .dp,
4646 )
@@ -49,5 +49,5 @@ public data class PokdexBackground(
4949 }
5050}
5151
52- public val LocalBackgroundTheme : ProvidableCompositionLocal <PokdexBackground > =
53- staticCompositionLocalOf { PokdexBackground () }
52+ public val LocalBackgroundTheme : ProvidableCompositionLocal <PokedexBackground > =
53+ staticCompositionLocalOf { PokedexBackground () }
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public fun PokedexTheme(
4545 } else {
4646 PokedexColors .defaultLightColors()
4747 },
48- background : PokdexBackground = PokdexBackground .defaultBackground(darkTheme),
48+ background : PokedexBackground = PokedexBackground .defaultBackground(darkTheme),
4949 content : @Composable () -> Unit ,
5050) {
5151 CompositionLocalProvider (
@@ -76,9 +76,9 @@ public object PokedexTheme {
7676 get() = LocalColors .current
7777
7878 /* *
79- * Retrieves the current [PokdexBackground ] at the call site's position in the hierarchy.
79+ * Retrieves the current [PokedexBackground ] at the call site's position in the hierarchy.
8080 */
81- public val background: PokdexBackground
81+ public val background: PokedexBackground
8282 @Composable
8383 @ReadOnlyComposable
8484 get() = LocalBackgroundTheme .current
You can’t perform that action at this time.
0 commit comments