-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add custom decredmaterial button and clickable #630
Conversation
Does this resolve #592 as well? KIndly rebase. |
8be6c9f
to
68ada8c
Compare
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.
We will need to open an upstream issue to gio for the clickable widget drawInk(), as the issue with the clickable widget comes from there.
68ada8c
to
516ae02
Compare
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.
This width of the hover highlight will be solved in another pull request as this one doesn't focus on modifying the layouts. |
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.
- When the side and top nav buttons are hovered, the hover effect do not display.
- Also, on the dropdown, the clickable even behaves unexpectedly as i would have to click twice for the dropdown to be displayed.
- The create wallet button at the bottom right on the wallet page does not have the hover or click hightlight effect anymore
- When the loader icon is displayed, the cancel button should be hidden.
My recommendation will be to have this PR split into 2 different PRs.
- The first to resolve the Action buttons update #595
- The second to resolve clickable events Fix Clickable widget effect highlight. #584
This will enable us properly test the custom clickable widget and not block issue #595.
- Remove all direct accesses of ButtonStyle clickable
- add predefined styles for outline button
- apply custom clickable layout to clickable list
2822e8b
to
8782851
Compare
1 similar comment
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.
if len(c.items[index].Text) > 12 { | ||
txt = c.items[index].Text[:12] + "..." | ||
} | ||
c.items[0].label.Text = txt |
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 sync button font on the overview page looks bigger. 630
630
The inactive/disable button color should be |
- Reduce tx details copy button text size and remove redundant creation of copy buttons. - Fix clickable highlight bug
|
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.
* Add custom button layout - Remove all direct accesses of ButtonStyle clickable * button: disable user interactions if disabled * Add support for custom button highlight color - add predefined styles for outline button * Replace instances with explicit outline buttons style with predefined style * Fix incorrect button background in dropdown & switch button * Add clickable layout that supports custom background & radius - apply custom clickable layout to clickable list * Add Hover to decredmaterial Clickable * Replace usages of Clickable with decredmaterial.Clickable * Correctly handle button disabled states in all pages * Wrap create wallet button in a white background * Fix nav layout * Add clickable hover to account selector modal * Add clickable hover to dropdown widget * Remove unused comments * Add clickable to linear layout - Fix nav drawer clickable layout * Remove clickable parameter from outline button * Remove clickable parameter from all buttons * Fix dropdown layout clickable * Cleanup dropdown widget code * Add padding to account selector rows * Fix highlight colors * Cleanup more page row layout * Truncate wallet name * Fix reconnect button bug - Reduce tx details copy button text size and remove redundant creation of copy buttons. - Fix clickable highlight bug * Fix click highlight color * Fix wallet button highlight
Closes #592
This pr implements a custom clickable highlight that allows custom color and border radius properties. A custom button layout is also added, it makes use of a custom clickable highlight and allows switching to a disabled state without directly changing the colors.