From 72e0f6be8466f57e230682ddf8d84dcfa9e002e1 Mon Sep 17 00:00:00 2001 From: Freeze Date: Sat, 24 Feb 2024 19:33:24 +0100 Subject: [PATCH] transparent tabs background --- app/src/main/java/com/freezerain/dogtok/composables/Card.kt | 6 +++--- .../main/java/com/freezerain/dogtok/composables/MainFeed.kt | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/freezerain/dogtok/composables/Card.kt b/app/src/main/java/com/freezerain/dogtok/composables/Card.kt index 1e353d3..d5dc506 100644 --- a/app/src/main/java/com/freezerain/dogtok/composables/Card.kt +++ b/app/src/main/java/com/freezerain/dogtok/composables/Card.kt @@ -37,13 +37,13 @@ fun Card( Column( modifier = Modifier .align(Alignment.BottomStart) - .padding(20.dp) + .padding(8.dp) ) { Text( text = title, - fontSize = 28.sp, color = Color(1f, 0.1f, 0.1f, 1f) + fontSize = 18.sp, color = Color(0.5f, 0.5f, 0.5f, 1f) ) - Text(text = description, fontSize = 14.sp, color = Color(1f, 0.1f, 0.1f, 1f)) + Text(text = description, fontSize = 14.sp, color = Color(0.75f, 0.75f, 0.75f, 1f)) } } diff --git a/app/src/main/java/com/freezerain/dogtok/composables/MainFeed.kt b/app/src/main/java/com/freezerain/dogtok/composables/MainFeed.kt index d98cd0c..ec640b0 100644 --- a/app/src/main/java/com/freezerain/dogtok/composables/MainFeed.kt +++ b/app/src/main/java/com/freezerain/dogtok/composables/MainFeed.kt @@ -17,6 +17,7 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.remember import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import com.freezerain.dogtok.data.TabItem @@ -52,7 +53,10 @@ fun MainFeed( Column( modifier = localModifier.then(modifier).then(Modifier.padding(paddingValues)) ) { - TabRow(selectedTabIndex = pagerState.currentPage) { + TabRow(selectedTabIndex = pagerState.currentPage, + containerColor = Color.Transparent, + + ) { tabs.forEachIndexed { index, tabItem -> Tab( selected = pagerState.currentPage == index,