From 754323bfdcda1d3dc89ad39ea796f78d634a8165 Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Wed, 23 Sep 2026 07:52:18 +0000 Subject: [PATCH] remove the logo from the library header --- .../com/subtracks/ui/library/LibraryScreen.kt | 32 ++++--------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/app/src/main/kotlin/com/subtracks/ui/library/LibraryScreen.kt b/app/src/main/kotlin/com/subtracks/ui/library/LibraryScreen.kt index 456a3d1f..90c23629 100644 --- a/app/src/main/kotlin/com/subtracks/ui/library/LibraryScreen.kt +++ b/app/src/main/kotlin/com/subtracks/ui/library/LibraryScreen.kt @@ -57,14 +57,12 @@ import androidx.compose.ui.input.nestedscroll.nestedScroll import androidx.compose.ui.layout.boundsInParent import androidx.compose.ui.layout.onGloballyPositioned import androidx.compose.ui.platform.LocalDensity -import androidx.compose.ui.res.painterResource import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.IntOffset import androidx.compose.ui.unit.dp import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.paging.compose.LazyPagingItems import androidx.paging.compose.collectAsLazyPagingItems -import com.subtracks.R import com.subtracks.data.model.Album import com.subtracks.data.model.Artist import com.subtracks.data.model.CoverArtRef @@ -190,33 +188,17 @@ fun LibraryScreen( .height(titleHeight * (1f - titleFraction)) .clipToBounds(), ) { - Row( + Text( + text = selectedTab.label, + style = MaterialTheme.typography.headlineLarge, + color = MaterialTheme.colorScheme.onBackground, + maxLines = 1, modifier = Modifier .offset(y = -(titleHeight * titleFraction)) .wrapContentHeight(unbounded = true) - .fillMaxWidth(), - ) { - val logoSize = 28.dp - Icon( - painter = painterResource(R.drawable.ic_stat_name), - contentDescription = null, - tint = MaterialTheme.colorScheme.onBackground, - modifier = - Modifier - .padding(start = 20.dp, top = titleTop + (titleLineHeight - logoSize) / 2) - .size(logoSize), - ) - Text( - text = selectedTab.label, - style = MaterialTheme.typography.headlineLarge, - color = MaterialTheme.colorScheme.onBackground, - maxLines = 1, - modifier = - Modifier - .padding(start = 8.dp, end = 16.dp, top = titleTop), - ) - } + .padding(start = 16.dp, end = 16.dp, top = titleTop), + ) } LibraryTabs( pagerState = pagerState,