Repository navigation
fix(ui): follow Material and Android for sheets, back, icons, speed, toggles and haptics - #109
Merged
Merged
Conversation
… speed Screenshot tests for UI that no golden shows yet, rendering it as it is today so CI records the "before": the album chooser inside a folder (standard, dark), the photo editor's undo/redo and crop nudges (standard; the editor is always dark), and the playback speed sheet (standard, dark). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vGQ3zr1LSQtH3D545V8mU
Scrubbing past a month is a frequent segment tick and reaching a zoom limit is a gesture threshold, as Android's haptics principles define them; VirtualKey is for key presses. Alba already uses both types elsewhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vGQ3zr1LSQtH3D545V8mU
…k mode AlbaBottomSheet used the page background with no elevation, so in dark mode a sheet was the same near-black as the page under it. It now uses BottomSheetDefaults.ContainerColor (surfaceContainerLow), as design.md asks for surfaces that get lighter as they rise, and keeps Material's drag handle. Grouped cards on a sheet go one step higher (surfaceContainerHigh) so they keep standing out from it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vGQ3zr1LSQtH3D545V8mU
System and predictive back now leave one folder at a time and close the sheet only at the top level, instead of dismissing the whole chooser. The way up moves from an in-list Back row into the sheet heading as a navigation icon button (still tagged album-chooser-up), and folder rows lose their chevron, which design.md rules out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vGQ3zr1LSQtH3D545V8mU
The editor's undo and redo were the text glyphs ↶/↷ and the crop nudges were −/+ text buttons, outside Alba's one icon family. AlbaIcons gains Material Symbols Rounded undo, redo (both mirrored in right-to-left layouts) and remove, with path data from Google's 24px weight-400 glyphs; the nudges reuse add. The nudges become 48dp icon buttons; content descriptions and tags are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vGQ3zr1LSQtH3D545V8mU
The speed sheet drew its own handle and 44dp chips, showed the choice only with a ✓ glyph and hard-coded labels such as 0.25X. It is now an AlbaBottomSheet with a radio row per speed: 56dp targets, Role.RadioButton and selected semantics in a selectable group, and labels from playback_speed_value with the number formatted for the locale (0,25× in Italian). The sheet is tagged playback-speed-sheet and each row playback-speed-<speed>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vGQ3zr1LSQtH3D545V8mU
The control was a plain button whose label flipped between "Play Live Photo" and "Show still photo". It is now toggleable with Role.Switch and a stable "Live Photo" name (live_photo), so TalkBack reads it as on or off; the Live Photos symbol turns primary while the motion plays. play_live_photo and show_still_photo are removed. The viewer-live tag is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017vGQ3zr1LSQtH3D545V8mU
Contributor
Screenshot goldens updatedCI recorded the goldens on Linux and pushed f2be481 to this branch. The checks run again on it. dark
standard
Review the images in Files changed before merging: merging accepts them. |
Golden-New: dark/album-chooser-folder.png Golden-New: dark/playback-speed-sheet.png Golden-New: standard/album-chooser-folder.png Golden-New: standard/photo-editor-crop.png Golden-New: standard/photo-editor.png Golden-New: standard/playback-speed-sheet.png
…hub.com/thisislvca/alba into claude/dazzling-bardeen-0vg0kz-ui-fixes
Golden-Changed: compact/filter-sheet.png Golden-Changed: dark/activity-sheet-held-back-queue.png Golden-Changed: dark/activity-sheet-held-back.png Golden-Changed: dark/album-chooser-folder.png Golden-Changed: dark/filter-sheet.png Golden-Changed: dark/playback-speed-sheet.png Golden-Changed: dark/shared-album-details-legacy.png Golden-Changed: dark/shared-album-details-modern.png Golden-Changed: dark/shared-album-sheet-member-end.png Golden-Changed: dark/shared-album-sheet-member.png Golden-Changed: dark/shared-album-sheet-owner-end.png Golden-Changed: dark/shared-album-sheet-owner.png Golden-Changed: font-1.3/filter-sheet.png Golden-Changed: standard/activity-sheet-held-back-queue.png Golden-Changed: standard/activity-sheet-held-back.png Golden-Changed: standard/activity-sheet.png Golden-Changed: standard/album-chooser-folder.png Golden-Changed: standard/filter-sheet.png Golden-Changed: standard/photo-editor-crop.png Golden-Changed: standard/photo-editor.png Golden-Changed: standard/playback-speed-sheet.png Golden-Changed: standard/shared-album-details-legacy.png Golden-Changed: standard/shared-album-details-modern.png Golden-Changed: standard/shared-album-sheet-member-end.png Golden-Changed: standard/shared-album-sheet-member.png Golden-Changed: standard/shared-album-sheet-owner-end.png Golden-Changed: standard/shared-album-sheet-owner.png
…en-0vg0kz-ui-fixes # Conflicts: # app/src/test/screenshots/dark/shared-album-details-legacy.png # app/src/test/screenshots/dark/shared-album-details-modern.png # app/src/test/screenshots/dark/shared-album-sheet-member-end.png # app/src/test/screenshots/dark/shared-album-sheet-member.png # app/src/test/screenshots/dark/shared-album-sheet-owner-end.png # app/src/test/screenshots/dark/shared-album-sheet-owner.png # app/src/test/screenshots/standard/shared-album-details-legacy.png # app/src/test/screenshots/standard/shared-album-details-modern.png # app/src/test/screenshots/standard/shared-album-sheet-member-end.png # app/src/test/screenshots/standard/shared-album-sheet-member.png # app/src/test/screenshots/standard/shared-album-sheet-owner-end.png # app/src/test/screenshots/standard/shared-album-sheet-owner.png
Golden-Changed: dark/shared-album-details-legacy.png Golden-Changed: dark/shared-album-details-modern.png Golden-Changed: dark/shared-album-sheet-member-end.png Golden-Changed: dark/shared-album-sheet-member.png Golden-Changed: dark/shared-album-sheet-owner-end.png Golden-Changed: dark/shared-album-sheet-owner.png Golden-Changed: standard/shared-album-details-legacy.png Golden-Changed: standard/shared-album-details-modern.png Golden-Changed: standard/shared-album-sheet-member-end.png Golden-Changed: standard/shared-album-sheet-member.png Golden-Changed: standard/shared-album-sheet-owner-end.png Golden-Changed: standard/shared-album-sheet-owner.png
…en-0vg0kz-ui-fixes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Items 5–10 of the Material 3 review's "Doing wrong" list: places where Alba redrew or mislabelled something Material and Android already define. The first commit only adds screenshot tests of the current UI, so CI's bot records the "before" images; the fixes follow in later commits.
What changed and why
AlbaBottomSheetbackgroundwithtonalElevation = 0.dp, so in dark mode a sheet was the same near-black as the pageBottomSheetDefaults.ContainerColor(surfaceContainerLow), the M3 default, with Material's drag handle. design.md: "surfaces that get lighter as they rise". Grouped cards on a sheet go one step up (surfaceContainerHigh) so they still stand out from it>chevronBackHandlerwhile inside a folder: back goes up one level and closes the sheet only at the top. "Up" is a 48dp navigation icon button in the sheet heading (AlbaSheetHeadinggainsnavigationIcon). No chevron (design.md: no>chevrons)undo,redo(mirrored in RTL) andremoveadded toAlbaIcons, from Google's 24px weight-400 glyphs; nudges reuseaddand become 48dp icon buttons. Content descriptions unchangedAlbaBottomSheetwith one radio row per speed: 56dp targets,Role.RadioButtonand selected semantics in aselectableGroup, labels from a string with the number formatted for the locale ("0,25×" in Italian). Same five speedstoggleablewithRole.Switchand a stable "Live Photo" name, so TalkBack reads on/off; the Live Photos symbol turns primary while the motion playsVirtualKeyfor each month the scrubber passes and at zoom limitsSegmentFrequentTickfor scrubbing andGestureThresholdActivateat zoom limits, per Android's haptics principles (both already used elsewhere in Alba)Every sheet already went through
AlbaBottomSheetexcept the speed sheet, which now does too. The review also names the photo-size picker in the filter sheet as hand-rolled; that is left for a separate change.Strings (en and it): adds
playback_speed_valueandlive_photo; removesplay_live_photoandshow_still_photo. Tags:album-chooser-upmoves to the heading button,undo-edit,redo-editandviewer-liveare unchanged; newplayback-speed-sheetandplayback-speed-<speed>(e.g.playback-speed-0.25).Tests
AlbumChooserScreenshots(light and dark)album-chooser-folder;PhotoEditorScreenshotsphoto-editor(undo enabled after one crop step) andphoto-editor-crop(the nudges), standard only because the editor is always dark;PlaybackSpeedScreenshots(light and dark)playback-speed-sheet. One capture per test.AlbumComponentsTest: inside a nested folder, back shows the parent level and the sheet stays open; at the top level back dismisses. Checked to fail without the handler.VideoPlayerTest: the speed rows are radio buttons, the current speed is selected, choosing one applies it, and Italian shows "0,25×" and "1,5×".ViewerControlsTest: the Live Photo control is a switch named "Live Photo", off, then on after a tap, then off.PhoneCopiesTest(device) now asserts the switch state instead of the old labels; not run locally.filter-sheet(standard, dark, compact, font-1.3),activity-sheet(standard),activity-sheet-held-backand-queue,shared-album-sheet-owner,-owner-end,-member,-member-end,shared-album-details-legacyand-modern(standard and dark). A local Linux verify run showed exactly these differing, plus the new screens.compileDebugUnitTestKotlin,compileDebugAndroidTestKotlin,detekt,ktlintCheckandlintDebugpass; the touched JVM classes above,HapticsTest,PhotoEditorScreenTest,TranslationResourcesTestand all screenshot classes (render mode) pass.Screenshots
Before is a999d5e, after is 2ccd41a, both recorded by CI on Linux. Standard and dark are shown; other variants that changed are listed under the table.
activity-sheet(standard)activity-sheet-held-back(standard)activity-sheet-held-back(dark)activity-sheet-held-back-queue(standard)https://raw.githubusercontent.com/thisislvca/alba/a999d5e799d5d68ca6f97ff5e4e301568563af3d/app/src/test/screenshots/standard/activity-sheet-held-back-queue.png"width="260" alt="activity-sheet-held-back-queue standard before">https://raw.githubusercontent.com/thisislvca/alba/2ccd41a9f211552461bf71edc3a48899a3cf9555/app/src/test/screenshots/standard/activity-sheet-held-back-queue.png"width="260" alt="activity-sheet-held-back-queue standard after">activity-sheet-held-back-queue(dark)album-chooser-folder(standard)album-chooser-folder(dark)filter-sheet(standard)filter-sheet(dark)photo-editor(standard)photo-editor-crop(standard)playback-speed-sheet(standard)playback-speed-sheet(dark)shared-album-details-legacy(standard)shared-album-details-legacy(dark)shared-album-details-modern(standard)shared-album-details-modern(dark)shared-album-sheet-member(standard)shared-album-sheet-member(dark)shared-album-sheet-member-end(standard)https://raw.githubusercontent.com/thisislvca/alba/a999d5e799d5d68ca6f97ff5e4e301568563af3d/app/src/test/screenshots/standard/shared-album-sheet-member-end.png"width="260" alt="shared-album-sheet-member-end standard before">https://raw.githubusercontent.com/thisislvca/alba/2ccd41a9f211552461bf71edc3a48899a3cf9555/app/src/test/screenshots/standard/shared-album-sheet-member-end.png"width="260" alt="shared-album-sheet-member-end standard after">shared-album-sheet-member-end(dark)shared-album-sheet-owner(standard)shared-album-sheet-owner(dark)shared-album-sheet-owner-end(standard)https://raw.githubusercontent.com/thisislvca/alba/a999d5e799d5d68ca6f97ff5e4e301568563af3d/app/src/test/screenshots/standard/shared-album-sheet-owner-end.png"width="260" alt="shared-album-sheet-owner-end standard before">https://raw.githubusercontent.com/thisislvca/alba/2ccd41a9f211552461bf71edc3a48899a3cf9555/app/src/test/screenshots/standard/shared-album-sheet-owner-end.png"width="260" alt="shared-album-sheet-owner-end standard after">shared-album-sheet-owner-end(dark)Also changed:
filter-sheet(compact, font-1.3).Generated by Claude Code