mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-14 21:18:56 +01:00
Lift Compose theme to abstract controller
This commit is contained in:
@@ -3,6 +3,7 @@ package eu.kanade.tachiyomi.ui.base.controller
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import androidx.compose.runtime.Composable
|
||||
import eu.kanade.presentation.theme.TachiyomiTheme
|
||||
import eu.kanade.tachiyomi.databinding.ComposeControllerBinding
|
||||
import nucleus.presenter.Presenter
|
||||
|
||||
@@ -15,7 +16,9 @@ abstract class ComposeController<P : Presenter<*>> : NucleusController<ComposeCo
|
||||
super.onViewCreated(view)
|
||||
|
||||
binding.root.setContent {
|
||||
ComposeContent()
|
||||
TachiyomiTheme {
|
||||
ComposeContent()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user