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

Commit a67b7a58 authored by Chaohui Wang's avatar Chaohui Wang Committed by Automerger Merge Worker
Browse files

Merge "Disable the App Bar title font scaling" into udc-dev am: 7dd18dd3

parents d5170205 7dd18dd3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ import androidx.compose.ui.semantics.clearAndSetSemantics
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Constraints
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.Velocity
import androidx.compose.ui.unit.dp
@@ -460,6 +461,9 @@ private fun TopAppBarLayout(
                ProvideTextStyle(value = titleTextStyle) {
                    CompositionLocalProvider(
                        LocalContentColor provides titleContentColor,
                        // Disable the title font scaling by only passing the density but not the
                        // font scale.
                        LocalDensity provides Density(density = LocalDensity.current.density),
                        content = title
                    )
                }