-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update staking layout #244
Conversation
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.
First pass. Will go again after these.
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.
Looks good overall.
going to the staking menu for a wallet that hasn't been synced causes the app to crash
|
I just update only layout, but I thinks it correct |
It done @dreacot |
Pleases give me more detail, I can't reproduce it |
Create a new wallet, don't sync it, click on staking menu |
fixed |
The codes LGTM. |
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.
fix conflicts |
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.
Approved, pending @Sirmorrison's comment on one of the changes here.
return formatBalance(gtx, l, amount, mainTextSize, .85, l.Theme.Color.PageNavText, true, true) | ||
return formatBalance(gtx, l, amount, mainTextSize, l.Theme.Color.PageNavText, true, true) |
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.
The default scale is .7, but this guy was using .85. I see that this LayoutBalanceWithUnitSizeBoldText
was added by @Sirmorrison in #247. Let's get his thoughts on this change to use .7 instead of .85.
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.
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.
I think it's fine to use the same scale all through. However, I'm not sure the default scale should be .7. From what I see in many places on figma, the significant part of the amount text uses 18px while the insignificant part uses 14px, which is a scale of 0.78 (14/18). Please verify and adjust accordingly @JustinBeBoy.
if pg.showMaterialLoader { | ||
gtx.Constraints.Min.X = gtx.Constraints.Max.X | ||
return layout.Center.Layout(gtx, pg.materialLoader.Layout) | ||
} | ||
return pg.scroll.List().Layout(gtx, 1, func(gtx C, i int) D { | ||
gtx.Constraints.Max.Y = ticketHeight |
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.
Someone who has tickets should verify if this is necessary. What happens if it's removed?
This PR resolve #212
This PR:
ScreenShot