Skip to content
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 button downstates to appearance settings screen #1224

Merged
merged 9 commits into from
Jun 20, 2023

Conversation

bemusementpark
Copy link

@bemusementpark bemusementpark commented May 29, 2023

This PR adds downstate to most buttons in settings, and utilises the rounding from CardView for the rounded corners on the top and bottom buttons.

device-2023-05-29-183310.webm

@@ -125,29 +125,6 @@ private boolean isBottom(int position) {
return next instanceof PreferenceCategory;
}

public Drawable getBackground(Context context, int position) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this doesn't break things for the other settings screens (chats, notifications etc all the other ones?)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your concern is well founded as this breaks all of the preference backgrounds.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted... well mostly, I added ripple to those buttons 🎉

@bemusementpark bemusementpark changed the title Add ripple downstate to appearance settings screen Add button downstates to appearance settings screen Jun 19, 2023
@bemusementpark bemusementpark merged commit b9f24bc into oxen-io:dev Jun 20, 2023
@bemusementpark bemusementpark deleted the appearance-ripple branch June 20, 2023 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants