Skip to content

Commit

Permalink
FIX use app backgroundcolor from app theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ninovanhooff committed Dec 13, 2024
1 parent 235d6fe commit 0d2e89e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/kotlin/nl/q42/template/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
}
}
Expand Down

0 comments on commit 0d2e89e

Please sign in to comment.