Skip to content

Commit

Permalink
transparent tabs background
Browse files Browse the repository at this point in the history
  • Loading branch information
freezerain committed Feb 24, 2024
1 parent 51d7b01 commit 72e0f6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/freezerain/dogtok/composables/Card.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 72e0f6b

Please sign in to comment.