New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt: Finetune CoinControlDialog + bitcoin#14828 #3701
Conversation
The rows resize without it if they get locked and the lock icon appears besides the checkbox. Looks weird.. and especially if you press the lock all button its just not nice.
I can't reproduce the issue... |
I don't know, for me it just works, nothing jumps or shifts anywhere. With this patch it looks ok-ish but there is too much space between rows now imo. Lets maybe add some lines there e.g. aa48d26 (this also unifies the look with other tables as a side effect :) )? |
Also, how about applying 9f02792 while at it? This one is from btc 0.18 and had a couple of (trivial-ish) merge conflicts, so (if @PastaPastaPasta would complain :P) we could simply reduce this https://github.com/dashpay/dash/blob/develop/src/qt/forms/coincontroldialog.ui#L379 by 2 instead for now. And then apply smth like 8cf9965 maybe.
(Note: it's not obvious from screenshots but with this new column count/sizes there will be no useless horizontal scrolling anymore) |
@UdjinM6 I won't be able to test it until late evening here my time, but in the meantime, from looking at the screenshots i see some things we should probably still tweak
I would be fine with adding the bitcoin backport here btw 👍 lets see what pasta has to say. |
1c28feb qt: Remove hidden columns in coin control dialog (João Barbosa) Pull request description: Instead of having hidden columns, store the data in specific roles. Overlaps with bitcoin#14817, fixes bitcoin#11811. Tree-SHA512: e86e9ca426b9146ac28997ca1920dbae6cc4e2e494ff94fe131d605cd6c013183fc5de10036c886a4d6dcae497ac4067de3791be0ef9c88f7ce9f57f7bd97422
…llow to show them.
@UdjinM6 i added some more commits with the following impacts:
Preview
|
That's an interesting idea 👍 How about 2bf641f on top of it? |
… ones with rounds>=1 Also tweak button text
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
And make it default to show all coins in that case..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-ACK
Initial thoughts (might get edited as I find more stuff I don't like :D ) : |
To be honest, i don't think that this makes a lot sense. Why do you think that? The purpose of this dialog is to pick coins for sending, means there is actually no need to show unrelated (non-spendable) entries by default it's just a nice to have IMO.
Oh will do 👍 didn't realize that the scope of this PR has become that big compared to what the initial post says 😄 |
If we don't do that, I think people are going to "lose" coins after they get denominated but not fully mixed, since they won't be able to see those coins in either the Send tab or PrivateSend tab |
Well.. the button says |
IMO, the default between the two tabs, needs to show all coins. If we want the "Send" tab to show all coins that are not fully mixed, then that's fine, but I'd prefer just changing the default on privatesend tab to be showing all, if someone wants to see just mixed coins, it's just a click away |
Same applies vice versa, not? And still, the main purpose of the dialog is "Pick coins to Send" not "Look what your coins are doing" so i guess it will happen more often that you need to do that one click if they are shown by default because the not fully mixed just distract when choosing coins. |
Maybe it's just my usage, but I probably use it more often as a way to see the status of my outputs then choosing the outputs to spend |
Agree with @xdustinface on this, the purpose of this dialog is to list coins that are safe to spend and not coins that are (potentially) yours. When IS is disabled you won't see 0-conf coins received from someone else for example (same as in btc). With this in mind it makes perfect sense imo to make it harder for advanced users to mess things up (spending "fully mixed" coins in non-PS tx creates new change output which will become a link between this tx and some another tx spending it) and makes it easier to pick coins that are actually ready to spend (by hiding/disabling coins that are PS elated but aren't spendable via PS yet/at all). |
Okay, I'd prefer at least in the long term to make it even harder spending mixed funds in a not PrivateSend tx. @xdustinface please update pr description and I'll try to give it a full review tomorrow |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, all working as expected. mild code review
* qt: Add min-height for CoinControlTreeWidget#treeWidget::item The rows resize without it if they get locked and the lock icon appears besides the checkbox. Looks weird.. and especially if you press the lock all button its just not nice. * qt: Set background transparency for CoinControl item::hover * Merge bitcoin#14828: qt: Remove hidden columns in coin control dialog 1c28feb qt: Remove hidden columns in coin control dialog (João Barbosa) Pull request description: Instead of having hidden columns, store the data in specific roles. Overlaps with bitcoin#14817, fixes bitcoin#11811. Tree-SHA512: e86e9ca426b9146ac28997ca1920dbae6cc4e2e494ff94fe131d605cd6c013183fc5de10036c886a4d6dcae497ac4067de3791be0ef9c88f7ce9f57f7bd97422 * qt: Add border-bottom for tree items in CoinControl * qt: Stretch address column in CoinControlDialog * Adjust column width for a couple of columns * qt: Hide PrivateSend rounds column for normal Send tab's CoinControl * qt: Hide unrelated coins in CoinControl based on active mode. Still allow to show them. * qt: Hide empty top level items in CoinControlDialog's tree mode * qt: Hide tree/list radio buttons and default to list for PrivateSend * qt: Hide address/label column in CoinControl for PrivateSend * qt: Remove obsolete empty columns * qt: Rename column "PS Rounds" to "Mixing Rounds" * qt: Move border-bottom in already existing css selector * Reveal all PS related coins in coincontrol while in PS mode, not only ones with rounds>=1 Also tweak button text * qt: Only moving a statement a bit * qt: Hide the "hideButton" in CoinControlDialog if PrivatSend is disabled And make it default to show all coins in that case.. Co-authored-by: Jonas Schnelli <dev@jonasschnelli.ch> Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
* qt: Add min-height for CoinControlTreeWidget#treeWidget::item The rows resize without it if they get locked and the lock icon appears besides the checkbox. Looks weird.. and especially if you press the lock all button its just not nice. * qt: Set background transparency for CoinControl item::hover * Merge bitcoin#14828: qt: Remove hidden columns in coin control dialog 1c28feb qt: Remove hidden columns in coin control dialog (João Barbosa) Pull request description: Instead of having hidden columns, store the data in specific roles. Overlaps with bitcoin#14817, fixes bitcoin#11811. Tree-SHA512: e86e9ca426b9146ac28997ca1920dbae6cc4e2e494ff94fe131d605cd6c013183fc5de10036c886a4d6dcae497ac4067de3791be0ef9c88f7ce9f57f7bd97422 * qt: Add border-bottom for tree items in CoinControl * qt: Stretch address column in CoinControlDialog * Adjust column width for a couple of columns * qt: Hide PrivateSend rounds column for normal Send tab's CoinControl * qt: Hide unrelated coins in CoinControl based on active mode. Still allow to show them. * qt: Hide empty top level items in CoinControlDialog's tree mode * qt: Hide tree/list radio buttons and default to list for PrivateSend * qt: Hide address/label column in CoinControl for PrivateSend * qt: Remove obsolete empty columns * qt: Rename column "PS Rounds" to "Mixing Rounds" * qt: Move border-bottom in already existing css selector * Reveal all PS related coins in coincontrol while in PS mode, not only ones with rounds>=1 Also tweak button text * qt: Only moving a statement a bit * qt: Hide the "hideButton" in CoinControlDialog if PrivatSend is disabled And make it default to show all coins in that case.. Co-authored-by: Jonas Schnelli <dev@jonasschnelli.ch> Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
The rows resize without it if they get locked and the lock icon appears besides the checkbox. Looks weird.. and especially if you press the lock all button its just not nice.
Update
The scope has been expanded during review, see #3701 (comment) for the final result.