feat: dynamic colour, and android maps dark theme
This commit is contained in:
parent
34923ce743
commit
ea08db364e
5 changed files with 72 additions and 2 deletions
|
|
@ -0,0 +1,12 @@
|
|||
package moe.lava.banksia.native
|
||||
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@Composable
|
||||
expect fun BanksiaTheme(
|
||||
darkTheme: Boolean = isSystemInDarkTheme(),
|
||||
// Dynamic color is available on Android 12+
|
||||
dynamicColor: Boolean = true,
|
||||
content: @Composable () -> Unit
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue