[MWA-5265] Meta Demo: Theming via xml
{Configure light and dark themes}
This commit is contained in:
parent
a6f2510659
commit
22a13ded99
@ -15,6 +15,7 @@ import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.setValue
|
||||
import de.webidsolutions.android_ui_components.theming.v4.WebIdThemeProviderV4
|
||||
import de.webidsolutions.android_ui_components.theming.v4.WebIdThemeV4
|
||||
import de.webidsolutions.auto_ident_product_plugin.AutoIdProductPlugin
|
||||
import de.webidsolutions.eid_product_plugin.EIdProductPlugin
|
||||
import de.webidsolutions.meta_plugin.EMetaPluginFailReason
|
||||
@ -70,7 +71,10 @@ internal class MainActivity : ComponentActivity
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContent {
|
||||
WebIdThemeProviderV4{
|
||||
WebIdThemeProviderV4(
|
||||
theme = WebIdThemeV4.makeLightTheme {},
|
||||
darkTheme = WebIdThemeV4.makeDarkTheme {}
|
||||
){
|
||||
MetaPluginDemoScene(
|
||||
result = result,
|
||||
onStartClicked = { userConfiguration ->
|
||||
@ -85,7 +89,6 @@ internal class MainActivity : ComponentActivity
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* CORE SDK */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user