Skip to content

Commit 84a1c2d

Browse files
Fix naming inconsistency for PokedexBackground data class (#36)
1 parent 6657f96 commit 84a1c2d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

core/designsystem/src/main/kotlin/com/skydoves/pokedex/compose/core/designsystem/theme/PokedexBackground.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ import androidx.compose.ui.unit.dp
2727
import 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() }

core/designsystem/src/main/kotlin/com/skydoves/pokedex/compose/core/designsystem/theme/PokedexTheme.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)