Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3e64b50 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury Committed by Nishith Khanna
Browse files

refactor(ui): align search tabs color and text style

parent de7d229d
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -45,13 +45,14 @@ fun SearchTabs(
    modifier: Modifier = Modifier,
) {
    SecondaryTabRow(
        modifier = modifier,
        modifier = modifier.padding(horizontal = 16.dp),
        selectedTabIndex = selectedIndex,
        indicator = {
            if (selectedIndex in tabs.indices) {
                SecondaryIndicator(
                    modifier = Modifier.tabIndicatorOffset(selectedIndex),
                    color = MaterialTheme.colorScheme.primary,
                    height = 2.dp,
                    color = MaterialTheme.colorScheme.tertiary,
                )
            }
        },
@@ -64,14 +65,14 @@ fun SearchTabs(
            Tab(
                selected = index == selectedIndex,
                onClick = { onTabSelect(tab, index) },
                selectedContentColor = MaterialTheme.colorScheme.primary,
                unselectedContentColor = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.64f),
                selectedContentColor = MaterialTheme.colorScheme.tertiary,
                unselectedContentColor = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.60f),
            ) {
                Text(
                    text = label,
                    modifier = Modifier.padding(vertical = 12.dp),
                    style = MaterialTheme.typography.labelLarge.copy(
                        fontWeight = FontWeight.SemiBold,
                        fontWeight = FontWeight.Medium,
                        letterSpacing = 0.4.sp,
                    ),
                )