From 0d2e89ee4cc17e1309ec0a26fcda8dcb2f3b669d Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Fri, 13 Dec 2024 11:21:57 +0100 Subject: [PATCH] FIX use app backgroundcolor from app theme --- app/src/main/kotlin/nl/q42/template/MainActivity.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/nl/q42/template/MainActivity.kt b/app/src/main/kotlin/nl/q42/template/MainActivity.kt index df6fcac..5856ba3 100644 --- a/app/src/main/kotlin/nl/q42/template/MainActivity.kt +++ b/app/src/main/kotlin/nl/q42/template/MainActivity.kt @@ -5,7 +5,6 @@ import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.animation.ExperimentalAnimationApi import androidx.compose.foundation.layout.fillMaxSize -import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.ui.Modifier import androidx.navigation.compose.rememberNavController @@ -26,7 +25,7 @@ class MainActivity : ComponentActivity() { val navController = rememberNavController() - Surface(modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background) { + Surface(modifier = Modifier.fillMaxSize(), color = AppTheme.colors.surface) { AppNavigation(navController = navController, navGraph = NavGraphs.root) } }