Skip to content

Refactor Quick Settings UI#530

Open
Kimblebee wants to merge 61 commits into
mainfrom
kim/refactor/quickSettings/button-rows
Open

Refactor Quick Settings UI#530
Kimblebee wants to merge 61 commits into
mainfrom
kim/refactor/quickSettings/button-rows

Conversation

@Kimblebee

Copy link
Copy Markdown
Collaborator

No description provided.

Kimblebee added 30 commits April 8, 2026 19:12
- remove flip camera, stream config, and concurrent camera from quick settings
- all quick settings menu items adopt the button row ux
- WIP unique selection of settings depending on current capture mode
auxiliary function for settings subtitles
… state

- Re-added the 'More Settings' button to the Quick Settings bottom sheet.

- Introduced a 'showMoreSettingsButton' boolean parameter to control its visibility, defaulting to true.

- Removed unused 'focusedQuickSetting' state from 'QuickSettingsUiState' and 'TrackedCaptureUiState'.

- Cleaned up 'FlashModeUiStateAdapter.kt' by removing a debug 'println' and adding a 'todo(kc)' for 'visibleFlashModes'.
    Remove unused drawables and their corresponding enum classes in
    QuickSettingsEnums that are no longer referenced after the quick
    settings refactoring.
    - Decoupled dynamic range (video HDR) from image format (image HDR) settings across UI, controller, and CameraX configuration layers.
    - Removed dynamic range constraints from the createImageUseCase configuration in CameraSession.kt, enabling independent Ultra HDR
  image capture.
    - Updated QuickSettings bottom sheet click handlers to mutate only the HDR setting relevant to the active capture mode.
    - Enforced specialized Low Light Boost vs Ultra HDR conflicts in CameraXCameraSystem.kt, prioritizing Low Light Boost.
    - Created HdrUiStateAdapterTest.kt covering all HDR availability states and flash conflicts.
    - Refactored CameraXCameraSystemTest.kt to run parameterized HDR decoupling tests on both front and rear lenses.
@Kimblebee Kimblebee changed the base branch from main to kim/hdr/decouple-capture-modes June 12, 2026 18:21
Kimblebee added 11 commits June 15, 2026 11:10
- Fix accessibility issue in SettingRow by removing mergeDescendants from outer Row and applying it to title/subtitle Column.
- Add missing KDocs for Quick Settings row composables.
- Refactor FlashModeUiStateAdapter for idiomatic Kotlin (use flatMap, singleOrNull, when expression smart casting).
- Rename FLASH_UNSUPPORTED_ON_LENS_TAG value to lower_snake_case.
- Add unit test for FLASH_UNSUPPORTED_ON_LENS disabled reason in FlashModeUiStateAdapterTest.
- Update HdrUiStateAdapter KDoc to reflect STANDARD mode support.
- Update HdrUiState.Available KDoc to document isSupported parameter.
restrictive hdruistateadapter
…nto kim/refactor/quickSettings/button-rows
@Kimblebee Kimblebee marked this pull request as ready for review June 19, 2026 15:28
…ra test

    - Simplify HdrUiState.from signature by removing redundant externalCaptureMode parameter.
    - Use cameraAppSettings.captureMode directly, as it already incorporates external overrides on startup.
    - Update CaptureUiStateAdapter to match the new signature.
    - Refactor HdrUiStateAdapterTest to use the new signature.
    - Add unit test to verify that concurrent camera (dual mode) disables HDR video.
    Refactors `SettingRow` in `QuickSettingsComponents.kt` to accept a
    `buttons: @composable RowScope.() -> Unit` slot instead of a `vararg`
    array of Composables.

    This makes the Composable stable and skippable, preventing unnecessary
    recompositions, and eliminates `.toTypedArray()` allocations at call sites.
    Updates all callers (CaptureModeRow, HdrRow, AspectRatioRow, FlashRow,
    and previews) to use the new trailing lambda syntax.
Base automatically changed from kim/hdr/decouple-capture-modes to main July 7, 2026 23:06
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