Skip to content

Commit

Permalink
Fix setEmptyStateComposable dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Stypox committed Nov 21, 2024
1 parent c8b01a0 commit cff3834
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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.ViewCompositionStrategy
import org.schabi.newpipe.ui.theme.AppTheme
Expand All @@ -14,9 +18,13 @@ fun ComposeView.setEmptyStateComposable(
setViewCompositionStrategy(strategy)
setContent {
AppTheme {
EmptyStateComposable(
spec = spec
)
CompositionLocalProvider(
LocalContentColor provides contentColorFor(MaterialTheme.colorScheme.background)
) {
EmptyStateComposable(
spec = spec
)
}
}
}
}

0 comments on commit cff3834

Please sign in to comment.