NanoLedger icon indicating copy to clipboard operation
NanoLedger copied to clipboard

Syntax highlight parsed transactions

Open chvp opened this issue 2 years ago • 3 comments
trafficstars

chvp avatar Sep 02 '23 15:09 chvp

Hi is this issue still open? If it is then please provide me in depth about the issue so that I can try fixing?

PrakashIrom avatar Oct 01 '24 12:10 PrakashIrom

This issue is still open, yes. The card for each transaction is rendered here: https://github.com/chvp/NanoLedger/blob/main/app/src/main/java/be/chvp/nanoledger/ui/main/MainActivity.kt#L218

We already have each element of the transaction in a different field, so this issue is mostly about finding good colours to assign to each element. Special care has to be taken that it works in both dark and light mode. If possible the colours should also be based on the user's Material You theme.

(And refactoring the code a bit so that a TransactionCard is a separate function wouldn't be bad either 😬)

chvp avatar Oct 01 '24 12:10 chvp

Okay got it thank you!

PrakashIrom avatar Oct 01 '24 12:10 PrakashIrom