feat: dynamic colour, and android maps dark theme

This commit is contained in:
LavaDesu 2025-04-29 16:13:29 +10:00
parent 34923ce743
commit ea08db364e
Signed by: cilly
GPG key ID: 6500251E087653C9
5 changed files with 72 additions and 2 deletions

View file

@ -0,0 +1,23 @@
package moe.lava.banksia.native
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
@Composable
actual fun BanksiaTheme(
darkTheme: Boolean,
dynamicColor: Boolean,
content: @Composable (() -> Unit)
) {
val colorScheme = when {
darkTheme -> darkColorScheme()
else -> lightColorScheme()
}
MaterialTheme(
colorScheme = colorScheme,
content = content
)
}