Skip to content

Commit

Permalink
update: [ANDROAPP-5575] Modify color instead
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAparicioAlbaAsenjo committed Oct 18, 2023
1 parent e158e75 commit c9883a7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ fun InputFileResource(
onSelectFile.invoke()
}
},
modifier = Modifier.padding(top = Spacing.Spacing4, bottom = Spacing.Spacing4),
)
}
UPLOADING -> {
Expand All @@ -140,7 +141,7 @@ fun InputFileResource(
) {
Box(
Modifier
.padding(top = Spacing.Spacing8, bottom = Spacing.Spacing8)
.padding(top = Spacing.Spacing4, bottom = Spacing.Spacing4)
.size(Spacing.Spacing48),
) {
ProgressIndicator(
Expand All @@ -157,15 +158,15 @@ fun InputFileResource(
fileName.value?.let {
Text(
text = it,
style = MaterialTheme.typography.bodyLarge.copy(color = if (inputShellState != InputShellState.DISABLED) TextColor.OnSurface else TextColor.OnDisabledSurface),
color = if (inputShellState != InputShellState.DISABLED) TextColor.OnSurface else TextColor.OnDisabledSurface,
maxLines = 1,
modifier = Modifier.testTag(INPUT_FILE_TEST_TAG + UPLOAD_TEXT_FILE_NAME_TEST_TAG),
)
}
fileWeight.value?.let {
Text(
text = " $it",
style = MaterialTheme.typography.bodyLarge.copy(TextColor.OnDisabledSurface),
color = TextColor.OnDisabledSurface,
maxLines = 1,
modifier = Modifier.testTag(INPUT_FILE_TEST_TAG + UPLOAD_TEXT_FILE_WEIGHT_TEST_TAG),
)
Expand Down

0 comments on commit c9883a7

Please sign in to comment.