Skip to content

Commit 1a7aeac

Browse files
committed
Update text style to match the one used earlier
1 parent 5ec1df7 commit 1a7aeac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

collect_app/src/main/java/org/odk/collect/android/widgets/TextWidgetAnswer.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import androidx.compose.ui.Alignment
1414
import androidx.compose.ui.Modifier
1515
import androidx.compose.ui.graphics.vector.ImageVector
1616
import androidx.compose.ui.res.dimensionResource
17-
import androidx.compose.ui.text.TextStyle
1817
import androidx.compose.ui.unit.sp
1918
import org.odk.collect.androidshared.R.dimen
2019
import org.odk.collect.androidshared.ui.multiclicksafe.MultiClickGuard
@@ -52,7 +51,12 @@ fun TextWidgetAnswer(
5251
Spacer(modifier = Modifier.width(dimensionResource(id = dimen.margin_small)))
5352
Text(
5453
text = answer,
55-
style = TextStyle(fontSize = fontSize.sp)
54+
style = MaterialTheme.typography.bodyLarge.copy(
55+
fontSize = fontSize.sp,
56+
color = MaterialTheme.colorScheme.onSurface.copy(
57+
alpha = dimen.high_emphasis.toFloat()
58+
)
59+
)
5660
)
5761
}
5862
}

0 commit comments

Comments
 (0)