mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-25 03:29:21 +01:00
Fix setEmptyStateComposable dark theme
This commit is contained in:
parent
c8b01a06b0
commit
cff3834fde
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
package org.schabi.newpipe.ui.emptystate
|
package org.schabi.newpipe.ui.emptystate
|
||||||
|
|
||||||
|
import androidx.compose.material3.LocalContentColor
|
||||||
|
import androidx.compose.material3.MaterialTheme
|
||||||
|
import androidx.compose.material3.contentColorFor
|
||||||
|
import androidx.compose.runtime.CompositionLocalProvider
|
||||||
import androidx.compose.ui.platform.ComposeView
|
import androidx.compose.ui.platform.ComposeView
|
||||||
import androidx.compose.ui.platform.ViewCompositionStrategy
|
import androidx.compose.ui.platform.ViewCompositionStrategy
|
||||||
import org.schabi.newpipe.ui.theme.AppTheme
|
import org.schabi.newpipe.ui.theme.AppTheme
|
||||||
@ -14,9 +18,13 @@ fun ComposeView.setEmptyStateComposable(
|
|||||||
setViewCompositionStrategy(strategy)
|
setViewCompositionStrategy(strategy)
|
||||||
setContent {
|
setContent {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
EmptyStateComposable(
|
CompositionLocalProvider(
|
||||||
spec = spec
|
LocalContentColor provides contentColorFor(MaterialTheme.colorScheme.background)
|
||||||
)
|
) {
|
||||||
|
EmptyStateComposable(
|
||||||
|
spec = spec
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user