Skip to content

Use distinct icons and consistent ordering for aspect ratios - #632

Open
temcguir wants to merge 7 commits into
mainfrom
temcguir/aspect-ratio-icons
Open

temcguir wants to merge 7 commits into
mainfrom
temcguir/aspect-ratio-icons

Conversation

@temcguir

@temcguir temcguir commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

image
  • Replace the shared ic_aspect_ratio drawable with distinct Material Symbols vector drawables for each aspect ratio in quick settings:
    • 3:4 -> ic_crop_portrait
    • 1:1 -> ic_crop_square
    • 9:16 -> ic_crop_9_16
  • Remove the unused ic_aspect_ratio drawable resource.
  • Reorder the aspect ratio options in both Quick Settings (AspectRatioUiStateAdapter) and the Settings dialog (AspectRatioSetting) to 3:4, 1:1, 9:16 to match the design.
  • Add KDocs and unit/UI test coverage for the icon mappings, fallback order, and option ordering.

Testing

  • ./gradlew :ui:uistateadapter:capture:testDebugUnitTest :ui:components:capture:testDebugUnitTest :feature:settings:testDebugUnitTest
  • Verified visually on device.

All aspect ratio quick settings options previously shared the same
generic aspect_ratio icon. Replace it with Material Symbols icons that
reflect each ratio: crop_portrait (3:4), crop_square (1:1), and
crop_9_16 (9:16). Remove the now-unused ic_aspect_ratio drawable.
Match the order used in the quick settings design.
Keep the settings dialog consistent with the quick settings order.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request standardizes the camera aspect ratio settings and quick settings UI to follow a consistent order (3:4, 1:1, 9:16) and introduces distinct crop icons for each ratio. It also adds unit and device tests to verify the new ordering and selection behavior. The review feedback suggests correcting the path data in ic_crop_9_16.xml to represent a mathematically accurate 9:16 aspect ratio, and reordering the enum constants in CameraAspectRatio to match the updated UI sequence.

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.

1 participant