File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/ui/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ fun ErrorPanel(
9090@Preview(name = " Light mode" , uiMode = Configuration .UI_MODE_NIGHT_NO )
9191@Preview(name = " Dark mode" , uiMode = Configuration .UI_MODE_NIGHT_YES )
9292@Composable
93- fun ErrorPanelPreview () {
93+ private fun ErrorPanelPreview () {
9494 AppTheme {
9595 ErrorPanel (
9696 errorInfo = ErrorInfo (
Original file line number Diff line number Diff line change 11package org.schabi.newpipe.ui.components.common
22
3+ import android.content.res.Configuration
34import androidx.compose.foundation.layout.PaddingValues
45import androidx.compose.foundation.layout.RowScope
56import androidx.compose.foundation.layout.wrapContentWidth
@@ -40,9 +41,10 @@ fun ServiceColoredButton(
4041 }
4142}
4243
43- @Preview
44+ @Preview(name = " Light mode" , uiMode = Configuration .UI_MODE_NIGHT_NO )
45+ @Preview(name = " Dark mode" , uiMode = Configuration .UI_MODE_NIGHT_YES )
4446@Composable
45- fun ServiceColoredButtonPreview () {
47+ private fun ServiceColoredButtonPreview () {
4648 AppTheme {
4749 ServiceColoredButton (
4850 onClick = {},
Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ private fun CommentSection(
122122 Box (
123123 modifier = Modifier
124124 .fillMaxWidth()
125-
126125 ) {
127126 ErrorPanel (
128127 errorInfo = errorInfo,
You can’t perform that action at this time.
0 commit comments