-
Notifications
You must be signed in to change notification settings - Fork 719
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
[GUI] Add GUI controls for subtract-fee-from-amount #2347
[GUI] Add GUI controls for subtract-fee-from-amount #2347
Conversation
f9eee29
to
d8e47e1
Compare
71f2329
to
2255df7
Compare
cb6710c
to
cf2311e
Compare
0c14464
to
0646b46
Compare
Rebased on master, now that #2341 is merged. Ready for review. |
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.
Worked a bit on this here furszy@dd40114, some styling improvements to the checkbox for the light and dark themes:
- Aligned the checkbox checked/unchecked text color and check image to the screen styling. So the action does not receive a higher degree of screen focus than the recipient edit boxes.
- Added checkbox hover selector state.
Side from that, backend process wise, working good 👍 .
When we get some time in-between the priority path, will work on the submenu styling of the dark theme with @Neoperol in another PR. It shouldn't be having a white background.
We will make the 'subtractFeeFromAmount' a checkable button in the menu for multiple recipient rows
Visible when single recipient. Its checked state returns whether or not to subtract the fee from the recipient amount. SendMultiRow::toggleSubtractFeeFromAmount is not connected for now. It will be connected with the contextual menu, to set per-recipient subtract-fee-from-amount, when there are multiple rows.
…dark themes. * Aligned the checkbox checked/unchecked text color and check image to the screen styling. * Added checkbox hover selector state.
0646b46
to
3e860c5
Compare
Rebased on master, picked @furszy's styling commit, and added one more commit for the confirmation dialog. |
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.
Tested ACK 3e860c5.
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 3e860c5
Follow up to #2341.
As per title, add controls for this feature in the graphical interface.
For the moment, it's a simple checkbox, which is visible in case of single recipient.
The confirmation dialog shows the difference in the "total amount" (paid) when the fee is subtracted, or not, from the recipient amount (in the example, sending
1.00 PIV
).When there are multiple recipients, the checkbox is hidden, and controlled by a checkable button inside the contextual menu.
Maybe this is not very intuitive, or pretty, but it does the job.
Later on, possibly with the help of @Neoperol, we can design a better placement for these controls.
Closes #894
Closes #2196
Obviously based on top of
which must be reviewed before this one.