refactor: rename background to niaBackground

pull/1808/head
CaptainZ 8 months ago
parent 9afd3ce3e3
commit c0b88a962f

@ -51,8 +51,8 @@ fun NiaBackground(
modifier: Modifier = Modifier,
content: @Composable () -> Unit,
) {
val color = NiaTheme.backgroundTheme.color
val tonalElevation = NiaTheme.backgroundTheme.tonalElevation
val color = NiaTheme.niaBackground.color
val tonalElevation = NiaTheme.niaBackground.tonalElevation
Surface(
color = if (color == Color.Unspecified) Color.Transparent else color,
tonalElevation = if (tonalElevation == Dp.Unspecified) 0.dp else tonalElevation,

@ -260,7 +260,7 @@ object NiaTheme {
@ReadOnlyComposable
get() = LocalGradientColors.current
val backgroundTheme: BackgroundTheme
val niaBackground: BackgroundTheme
@Composable
@ReadOnlyComposable
get() = LocalBackgroundTheme.current

Loading…
Cancel
Save