Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
Fix using own theme with dark color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mklkj committed Jan 28, 2024
1 parent ae8c9de commit dfa2997
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package io.github.mklkj.kommunicator
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
Expand All @@ -12,12 +11,13 @@ import cafe.adriel.voyager.navigator.CurrentScreen
import cafe.adriel.voyager.navigator.Navigator
import io.github.mklkj.kommunicator.ui.modules.homescreen.HomeScreen
import io.github.mklkj.kommunicator.ui.modules.welcome.WelcomeScreen
import io.github.mklkj.kommunicator.ui.theme.KommunicatorTheme
import io.github.mklkj.kommunicator.ui.utils.collectAsStateWithLifecycle
import org.koin.compose.koinInject

@Composable
fun App() {
MaterialTheme {
KommunicatorTheme {
val viewModel = koinInject<AppViewModel>()
val isLoggedIn by viewModel.state.collectAsStateWithLifecycle()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ private val DarkColorScheme = darkColorScheme()
private val LightColorScheme = lightColorScheme()

@Composable
fun AppTheme(
fun KommunicatorTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
content: @Composable () -> Unit
) {
Expand Down

0 comments on commit dfa2997

Please sign in to comment.