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

Compose XML Color states #5232

Closed
wants to merge 2 commits into from
Closed

Compose XML Color states #5232

wants to merge 2 commits into from

Conversation

Williamrai
Copy link
Collaborator

What does this do?

This implements custom buttons in Compose that can dynamically change their state without needing a separate function for XML selectors. In XML, we define colors for different states using selectors, but in Compose this can be handled directly within the button function itself. I also converted the theme buttons in the ThemeChooserDialog to Compose and limited the access to the AppTheme in settings for testing purpose.

Phabricator:
https://phabricator.wikimedia.org/T381832

- creates CircularButton component
- creates OutlinedCircularButton
- adds ThemeChooserButtons to settings theme chooser dialog for testing purpose
@Williamrai Williamrai added the WIP Work in progress label Jan 16, 2025
@Williamrai Williamrai added Experimental Experiments and prototypes and removed WIP Work in progress labels Jan 16, 2025
@Williamrai Williamrai closed this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Experimental Experiments and prototypes
Development

Successfully merging this pull request may close these issues.

1 participant