Skip to content

Add LensSwitchButton composable - #755

Merged
thestinger merged 7 commits into
GrapheneOS:compose-prototypefrom
m4pl:task/738-lens-switch-button-composable
Oct 6, 2026
Merged

thestinger merged 7 commits into
GrapheneOS:compose-prototypefrom
m4pl:task/738-lens-switch-button-composable

Conversation

@m4pl

@m4pl m4pl commented Oct 5, 2026

Copy link
Copy Markdown
image image

Also added a rotation animation for all components.

Closes #738

@m4pl
m4pl requested review from RankoR and sdsantos October 5, 2026 21:33
@m4pl
m4pl marked this pull request as ready for review October 5, 2026 21:33

@sdsantos sdsantos left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

OCD: noticed that the reset icon is slightly of center, making it wiggle a bit when rotating.

reset_icon_off_center.mp4

Comment on lines +73 to +76
.indication(
interactionSource = interactions,
indication = ripple(color = colors.contentColor),
),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Couldn't this indication be added to the Box above, so this additional Box isn't necessary? I tried and it looked the same to me.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The reset icon is for the preview only. The production version will have a symmetrical icon. Thank you!

@thestinger
thestinger merged commit 6e67223 into GrapheneOS:compose-prototype Oct 6, 2026
2 checks passed
@thestinger

Copy link
Copy Markdown
Member

Maybe I shouldn't have merged this yet. I didn't notice the follow-up comments.

@thestinger

Copy link
Copy Markdown
Member

@m4pl Can you fix the regression in another PR?

@m4pl

m4pl commented Oct 6, 2026

Copy link
Copy Markdown
Author

@thestinger, yes, no problem.

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.

4 participants