Skip to content

Commit 9cc05ea

Browse files
committed
Use MaterialTheme colors in loan repayment schedule UI
1 parent 81bd1fc commit 9cc05ea

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

feature/loan/src/commonMain/kotlin/com/mifos/feature/loan/loanRepaymentSchedule/LoanRepaymentScheduleScreen.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,23 +197,23 @@ private fun LoanRepaymentRowItem(
197197
modifier = Modifier.weight(3f),
198198
text = date ?: "",
199199
style = MaterialTheme.typography.bodyLarge,
200-
color = Color.Black,
200+
color = MaterialTheme.colorScheme.onBackground,
201201
textAlign = TextAlign.End,
202202
)
203203

204204
Text(
205205
modifier = Modifier.weight(3f),
206206
text = amountDue,
207207
style = MaterialTheme.typography.bodyLarge,
208-
color = Color.Black,
208+
color = MaterialTheme.colorScheme.onBackground,
209209
textAlign = TextAlign.End,
210210
)
211211

212212
Text(
213213
modifier = Modifier.weight(3f),
214214
text = amountPaid,
215215
style = MaterialTheme.typography.bodyLarge,
216-
color = Color.Black,
216+
color = MaterialTheme.colorScheme.onBackground,
217217
textAlign = TextAlign.End,
218218
)
219219
}
@@ -226,7 +226,7 @@ private fun LoanRepaymentRowItem(
226226
private fun HeaderLoanRepaymentSchedule() {
227227
Box(
228228
modifier = Modifier
229-
.background(Color.Red.copy(alpha = .5f))
229+
.background(MaterialTheme.colorScheme.surfaceVariant)
230230
.fillMaxWidth(),
231231
) {
232232
Row(
@@ -239,31 +239,31 @@ private fun HeaderLoanRepaymentSchedule() {
239239
modifier = Modifier.weight(2f),
240240
text = stringResource(Res.string.feature_loan_status),
241241
style = MaterialTheme.typography.bodyLarge,
242-
color = Color.Black,
242+
color = MaterialTheme.colorScheme.onSurfaceVariant,
243243
textAlign = TextAlign.Start,
244244
)
245245

246246
Text(
247247
modifier = Modifier.weight(2f),
248248
text = stringResource(Res.string.feature_loan_date),
249249
style = MaterialTheme.typography.bodyLarge,
250-
color = Color.Black,
250+
color = MaterialTheme.colorScheme.onSurfaceVariant,
251251
textAlign = TextAlign.Center,
252252
)
253253

254254
Text(
255255
modifier = Modifier.weight(3f),
256256
text = stringResource(Res.string.feature_loan_loan_amount_due),
257257
style = MaterialTheme.typography.bodyLarge,
258-
color = Color.Black,
258+
color = MaterialTheme.colorScheme.onSurfaceVariant,
259259
textAlign = TextAlign.Center,
260260
)
261261

262262
Text(
263263
modifier = Modifier.weight(3f),
264264
text = stringResource(Res.string.feature_loan_amount_paid),
265265
style = MaterialTheme.typography.bodyLarge,
266-
color = Color.Black,
266+
color = MaterialTheme.colorScheme.onSurfaceVariant,
267267
textAlign = TextAlign.End,
268268
)
269269
}

0 commit comments

Comments
 (0)