Restore original list header's background color (#797)
* more subtle header * restore original ListGroupHeader color & make option applied to only LibraryUpdateError, using tonalElevation instead.
This commit is contained in:
parent
4d30068a81
commit
64b9b3e50f
2 changed files with 7 additions and 1 deletions
|
|
@ -45,6 +45,7 @@ internal fun LazyListScope.libraryUpdateErrorUiItems(
|
||||||
ListGroupHeader(
|
ListGroupHeader(
|
||||||
modifier = Modifier.animateItemFastScroll(),
|
modifier = Modifier.animateItemFastScroll(),
|
||||||
text = it.errorMessage,
|
text = it.errorMessage,
|
||||||
|
tonalElevation = 1.dp,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,18 +8,23 @@ import androidx.compose.material3.Text
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.text.font.FontWeight
|
import androidx.compose.ui.text.font.FontWeight
|
||||||
|
import androidx.compose.ui.unit.Dp
|
||||||
|
import androidx.compose.ui.unit.dp
|
||||||
import tachiyomi.presentation.core.components.material.padding
|
import tachiyomi.presentation.core.components.material.padding
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ListGroupHeader(
|
fun ListGroupHeader(
|
||||||
text: String,
|
text: String,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
|
// KMK -->
|
||||||
|
tonalElevation: Dp = 0.dp,
|
||||||
|
// KMK <--
|
||||||
) {
|
) {
|
||||||
// KMK -->
|
// KMK -->
|
||||||
Surface(
|
Surface(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.fillMaxWidth(),
|
.fillMaxWidth(),
|
||||||
color = MaterialTheme.colorScheme.surfaceContainerLow,
|
tonalElevation = tonalElevation,
|
||||||
) {
|
) {
|
||||||
// KMK <--
|
// KMK <--
|
||||||
Text(
|
Text(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue