Skip to content

Commit

Permalink
- Use rememberSwatchStyle in dynamic color scheme
Browse files Browse the repository at this point in the history
Utilize rememberSwatchStyle in the dynamic color scheme calculation to ensure consistent color theming.
  • Loading branch information
jacobrein committed Sep 10, 2024
1 parent b9d17e5 commit 7f524a6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.Color
Expand Down Expand Up @@ -109,10 +110,13 @@ fun OtakuMaterialTheme(
}
}
} else {
val swatchStyle by rememberSwatchStyle()

rememberDynamicColorScheme(
seedColor = themeColor.seedColor,
isAmoled = isAmoledMode,
isDark = darkTheme,
style = swatchStyle,
)
}

Expand Down

0 comments on commit 7f524a6

Please sign in to comment.