mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-25 12:27:38 +00:00
Address reviewer changes - make previews private and remove white space
This commit is contained in:
@@ -90,7 +90,7 @@ fun ErrorPanel(
|
|||||||
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
|
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
|
||||||
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)
|
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)
|
||||||
@Composable
|
@Composable
|
||||||
fun ErrorPanelPreview() {
|
private fun ErrorPanelPreview() {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
ErrorPanel(
|
ErrorPanel(
|
||||||
errorInfo = ErrorInfo(
|
errorInfo = ErrorInfo(
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package org.schabi.newpipe.ui.components.common
|
package org.schabi.newpipe.ui.components.common
|
||||||
|
|
||||||
|
import android.content.res.Configuration
|
||||||
import androidx.compose.foundation.layout.PaddingValues
|
import androidx.compose.foundation.layout.PaddingValues
|
||||||
import androidx.compose.foundation.layout.RowScope
|
import androidx.compose.foundation.layout.RowScope
|
||||||
import androidx.compose.foundation.layout.wrapContentWidth
|
import androidx.compose.foundation.layout.wrapContentWidth
|
||||||
@@ -40,9 +41,10 @@ fun ServiceColoredButton(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Preview
|
@Preview(name = "Light mode", uiMode = Configuration.UI_MODE_NIGHT_NO)
|
||||||
|
@Preview(name = "Dark mode", uiMode = Configuration.UI_MODE_NIGHT_YES)
|
||||||
@Composable
|
@Composable
|
||||||
fun ServiceColoredButtonPreview() {
|
private fun ServiceColoredButtonPreview() {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
ServiceColoredButton(
|
ServiceColoredButton(
|
||||||
onClick = {},
|
onClick = {},
|
||||||
|
|||||||
@@ -122,7 +122,6 @@ private fun CommentSection(
|
|||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
|
|
||||||
) {
|
) {
|
||||||
ErrorPanel(
|
ErrorPanel(
|
||||||
errorInfo = errorInfo,
|
errorInfo = errorInfo,
|
||||||
|
|||||||
Reference in New Issue
Block a user