Repository navigation
qt: Finetune TransactionsView - #3710
Conversation
The red icon should be obvious enough.
|
Pls see https://github.com/UdjinM6/dash/commits/pr3710. Also, not sure if "finetune overview page" PR is coming next but imo it should, cause tx list there uses wrong colors now and huge lightning bolt icon is just weird. Smth like 55c0f40336 maybe which looks like that:
|
…endDenominate` Avoid applying orange color to 0-fee mixing txes (PS denominate), use default (grey) color for them
|
Two things:
|
I don't have a strong opinion about it, but I have a concern :) On one hand, green is fine because "Mined" in "Type" column does the job of distinguishing them from non-coinbase txes already. On the other, with no type icons on overview screen there will be no way of easily identifying them there but I'm not sure if that's an issue or not. |
Done 👍
I vote to keep the blue for the reason @UdjinM6 pointed out + It doesn't hurt to have it blue (maybe your eyes a bit, idk, but i guess you can get used to it :P). It just makes it even easier to see what are mined txes and what not. Sure the "Mined" works there but a different color stands more out than a different text. |
|
Thinking more about it... it's not like a lot of users will ever see mined txes at all and those who will (miners+MNOs, if any of them use Core GUI for the wallet that receives block rewards) won't see them that often. So maybe it's not an issue at all and green (like for every other "receive" category) is fine? 🤔 |
Sure it would be fine but it basically would also work fine if we just use grey everywhere :D I honestly just don't see why it should be a bad thing to highlight mined TX? They also had a separate icon before this PR instead of the "incoming tx" icon. IMO they just deserve to get a special highlighting because they are special 😄 |
|
Yeah, you can use the same rarity argument to color coinbase txes pink or whatever, that's true :D |
|
I don't love blue since that has the connotation of IS locks, which doesn't really make sense for coinbase txes. Sure i'd get used to it, but I think grey or green make probably more sense, since mining is basically receiving from a "user" perspective, just instead of receiving from another person, you're receiving from the blockchain itself |
|
@PastaPastaPasta The idea i have in mind about the blue is simple.. People associate - DASH <> blue - sience our logo and overall color usage in apps and whatnot is blue. At least i have that strong association, so i guess there are others too.. it actually just makes sense, not? 😂 And because of that association i feel like blue would work very well for mined DASH + at the end mining coins is something special.. thats why i still think we should not use green because its not just a normal receive transaction. About the IS lock thing you mentioned.. this only applies to users who are already used to the old transaction highlighting. They will realize the new way of coloring very fast and easy imo. New user won't care at all. |
Except it's not the case that this is just for mined coins (even though that's what it says), but it's also for MN payouts and treasury payouts. In this case, it's not something super special, but is much more like generally receiving coins, just from the network directly. I'm not a fan of blue, just doesn't look good, and having it be green makes sense. I'm also okay with it basically not being colored. |
|
Mined, MN, Superblock... whatever. Receiving newly created DASH with no history is totally a special case compared to receiving coins with a history from someone else 🤷♂️ Or why did it get a special icon before? Not colored would conflict with PrivateSend btw. |
|
Well, I actually have a problem with that as well tbh... Using colors is fine imo, using colors and removing icons is also fine, but using colors as a replacement for icons doesn't make sense, in that case, you should just use icons as they are more descriptive and intuitive. I'd propose the following
In this case the colors simply indicate whether the tx (substantially, ie ignoring fees) added funds, removed funds, or did neither |
|
I don't like it because we by purpose undermine something which we could easily highlight in a special way and those highlighting would have not any bad impact nor do they look bad (for the most people i guess). They just allow show a clear distinction between more different transaction types. And since normal users wouldn't even be effected by this i even tend more to keep this colorings as they are.. special case for special users with a special highlighting. To be honest, im no miner and unfortunately i also have no MN.. but i think i would be happy to have such transactions stand out in my tx history 😄 Anyway, @PastaPastaPasta it looks like you and me won't come to an end.. we should probably stop with the reasoning now there are enough points already 😅 @UdjinM6 it seems like you should take a position for either of both sides now so that we can get this PR done! |
I do agree on wanting @UdjinM6's opinion, however, what I'm saying isn't limited to just miners / MNOs. But includes anyone using PrivateSend. We shouldn't use color highlighting in order to "show a clear distinction between more different transaction types" if the meaning isn't intuitive. Seeing a blue highlighting doesn't intuitively say "Mining", as opposed to the prior setup of a icon including a pickaxe does. |
|
Yeah i like the blue even more than the pickaxe as the latter is an icon for mining and like you said above thats different than MN/Treasury but you still got the pickaxe for those before 😆 Might not be 100% intuitive but the association |
|
Few notes:
should really be
Spending funds via PrivateSend uses the same decoration/coloring as in Outgoing TX (just like before).
How about diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
index a970717c75..780b0bb956 100644
--- a/src/qt/transactiontablemodel.cpp
+++ b/src/qt/transactiontablemodel.cpp
@@ -506,7 +506,9 @@ QVariant TransactionTableModel::amountColor(const TransactionRecord *rec) const
{
switch (rec->type) {
case TransactionRecord::Generated:
- return GUIUtil::getThemedQColor(GUIUtil::ThemedColor::BLUE);
+ return rec->status.status == TransactionStatus::Immature ?
+ GUIUtil::getThemedQColor(GUIUtil::ThemedColor::BLUE) :
+ GUIUtil::getThemedQColor(GUIUtil::ThemedColor::GREEN);
case TransactionRecord::RecvWithPrivateSend:
case TransactionRecord::RecvWithAddress:
case TransactionRecord::RecvFromOther:i.e. blue while it's immature (not yet spendable) and green when it's spendable like regular coins |
Oh right the color is wrong there! But your proposed "Left+Right arrow" is not correct unless there is something else happening in this case but if you look here: https://github.com/dashpay/dash/blob/develop/src/qt/transactiontablemodel.cpp#L435-L438 thats the right arrow. Why do want to call it "Mixing TX" ? Wouldn't "Mixing TX" rather fit here if we would talk about
Hmm im honestly not really a fan of that either. I mean, the idea itself sounds like a nice compromise between both and even though im totally for taking compromises in such cases in general it feels wrong to give a tx type even two colors now just to make everyone at least a bit happy 😄 What about sharing this PR with suba and let him decide instead? |
Yes, like I said
Mixing aka |
Ahh got it! My bad.. i somehow had in mind that your changes in e08b70e gave the |
|
Another idea: add an option |
|
That would also introduce two possible colors for one tx type at the end (and i see the next topic: what would be the default value? 😅). I don't know.. actually i would really prefer to have a static solution in this case and not give one tx txpe two possible colors. I would say we wait for subas feedback. I sent him the PR already and asked him to read the conversation + give his feedback and whatever he decides makes most sense is just what we go with? |
|
@UdjinM6 @xdustinface @PastaPastaPasta Ideally we should limit the number of colors to only two or max three. All Credit Transactions: Green (In mobile we use Dash Blue) |
|
There we go! Thanks for helping with the decision @iamsuba 😄 |
Make them green/orange instead.
4b85035 to
33effcb
Compare
|
How about 85452d8ed3 also? |
Let compiler complain about missing ones if any
UdjinM6
left a comment
There was a problem hiding this comment.
ACK
(but you need to update PR description one more time :D )
|
@xdustinface post-merge PR description nit: Mining TX should say |
* qt: Add missing changeEvent call in TransactionView * qt: Use state related colors in TransactionModel * qt: Don't colorize the text for abandoned transactions The red icon should be obvious enough. * qt: Drop InstantSend column from transaction view/model * qt: Update verify.png * qt: Extend the result string of TransactionTableModel::formatTxStatus * qt: Drop "LLMQ based" in some status strings * qt: Drop not longer needed ThemedColor entries * Introduce amountColors(), add a case for `TransactionRecord::PrivateSendDenominate` Avoid applying orange color to 0-fee mixing txes (PS denominate), use default (grey) color for them * Tweak IS/CL status string additions a bit more * Do not apply additional conditions, just use rec statuses * qt: Adjust amount colors for types Generated and PrivateSendDenominate Make them green/orange instead. * Assign all colors explictly, drop default case Let compiler complain about missing ones if any Co-authored-by: UdjinM6 <[email protected]>
* qt: Add missing changeEvent call in TransactionView * qt: Use state related colors in TransactionModel * qt: Don't colorize the text for abandoned transactions The red icon should be obvious enough. * qt: Drop InstantSend column from transaction view/model * qt: Update verify.png * qt: Extend the result string of TransactionTableModel::formatTxStatus * qt: Drop "LLMQ based" in some status strings * qt: Drop not longer needed ThemedColor entries * Introduce amountColors(), add a case for `TransactionRecord::PrivateSendDenominate` Avoid applying orange color to 0-fee mixing txes (PS denominate), use default (grey) color for them * Tweak IS/CL status string additions a bit more * Do not apply additional conditions, just use rec statuses * qt: Adjust amount colors for types Generated and PrivateSendDenominate Make them green/orange instead. * Assign all colors explictly, drop default case Let compiler complain about missing ones if any Co-authored-by: UdjinM6 <[email protected]>



This PR brings the following changes to TransactionView
Give the confirmation status icons different colors (they were mostly blue before)
Removes left/right/left+right arrows as transaction type indication. Instead colorize the amount with the following rules
Removes the second column "InstantSend" from the transaction table. I feel like this isn't really needed since IS locks are only a temporarily thing and this column doesn't have any sense if the locks are gone. Instead an IS locked transaction gets a (updated) bolt icon besides the address/label, where the tx indication icon was prior to this PR.
Do not longer colorize the whole row with blue/red font for IS locked/abandoned transactions.
Extends the tooltip texts for transaction hovering. It didn't indicate that the transaction was verified/locked by InstantSend/ChainLocks before.
Adjust IS/CL indication strings ec53e70 + 804dcc9
Preview