Skip to content

fix(ui): follow Material and Android for sheets, back, icons, speed, toggles and haptics - #109

Merged
thisislvca merged 13 commits into
mainfrom
claude/dazzling-bardeen-0vg0kz-ui-fixes
Dec 2, 2026
Merged

thisislvca merged 13 commits into
mainfrom
claude/dazzling-bardeen-0vg0kz-ui-fixes

Conversation

@thisislvca

@thisislvca thisislvca commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

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

Where Before After
Every AlbaBottomSheet On background with tonalElevation = 0.dp, so in dark mode a sheet was the same near-black as the page BottomSheetDefaults.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
Album chooser Back dismissed the whole sheet; "up" was an in-list Back row; folder rows had a > chevron BackHandler while 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 (AlbaSheetHeading gains navigationIcon). No chevron (design.md: no > chevrons)
Editor Undo/redo were the text glyphs ↶/↷; crop nudges were −/+ text buttons Material Symbols Rounded undo, redo (mirrored in RTL) and remove added to AlbaIcons, from Google's 24px weight-400 glyphs; nudges reuse add and become 48dp icon buttons. Content descriptions unchanged
Playback speed Hand-made sheet and handle, 44dp chips, selection shown only by "✓", hard-coded "0.25X"… AlbaBottomSheet with one radio row per speed: 56dp targets, Role.RadioButton and selected semantics in a selectableGroup, labels from a string with the number formatted for the locale ("0,25×" in Italian). Same five speeds
Live Photo control A plain button whose label flipped between "Play Live Photo" and "Show still photo" toggleable with Role.Switch and a stable "Live Photo" name, so TalkBack reads on/off; the Live Photos symbol turns primary while the motion plays
Haptics VirtualKey for each month the scrubber passes and at zoom limits SegmentFrequentTick for scrubbing and GestureThresholdActivate at zoom limits, per Android's haptics principles (both already used elsewhere in Alba)

Every sheet already went through AlbaBottomSheet except 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_value and live_photo; removes play_live_photo and show_still_photo. Tags: album-chooser-up moves to the heading button, undo-edit, redo-edit and viewer-live are unchanged; new playback-speed-sheet and playback-speed-<speed> (e.g. playback-speed-0.25).

Tests

  • New screenshot tests, rendering today's UI in the first commit: AlbumChooserScreenshots (light and dark) album-chooser-folder; PhotoEditorScreenshots photo-editor (undo enabled after one crop step) and photo-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.
  • Expected golden changes from the sheet colour: filter-sheet (standard, dark, compact, font-1.3), activity-sheet (standard), activity-sheet-held-back and -queue, shared-album-sheet-owner, -owner-end, -member, -member-end, shared-album-details-legacy and -modern (standard and dark). A local Linux verify run showed exactly these differing, plus the new screens.
  • Local: compileDebugUnitTestKotlin, compileDebugAndroidTestKotlin, detekt, ktlintCheck and lintDebug pass; the touched JVM classes above, HapticsTest, PhotoEditorScreenTest, TranslationResourcesTest and 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.

Screen Before After
activity-sheet (standard) activity-sheet standard before activity-sheet standard after
activity-sheet-held-back (standard) activity-sheet-held-back standard before activity-sheet-held-back standard after
activity-sheet-held-back (dark) activity-sheet-held-back dark before activity-sheet-held-back dark after
activity-sheet-held-back-queue (standard) <img src="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"> <img src="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) activity-sheet-held-back-queue dark before activity-sheet-held-back-queue dark after
album-chooser-folder (standard) album-chooser-folder standard before album-chooser-folder standard after
album-chooser-folder (dark) album-chooser-folder dark before album-chooser-folder dark after
filter-sheet (standard) filter-sheet standard before filter-sheet standard after
filter-sheet (dark) filter-sheet dark before filter-sheet dark after
photo-editor (standard) photo-editor standard before photo-editor standard after
photo-editor-crop (standard) photo-editor-crop standard before photo-editor-crop standard after
playback-speed-sheet (standard) playback-speed-sheet standard before playback-speed-sheet standard after
playback-speed-sheet (dark) playback-speed-sheet dark before playback-speed-sheet dark after
shared-album-details-legacy (standard) shared-album-details-legacy standard before shared-album-details-legacy standard after
shared-album-details-legacy (dark) shared-album-details-legacy dark before shared-album-details-legacy dark after
shared-album-details-modern (standard) shared-album-details-modern standard before shared-album-details-modern standard after
shared-album-details-modern (dark) shared-album-details-modern dark before shared-album-details-modern dark after
shared-album-sheet-member (standard) shared-album-sheet-member standard before shared-album-sheet-member standard after
shared-album-sheet-member (dark) shared-album-sheet-member dark before shared-album-sheet-member dark after
shared-album-sheet-member-end (standard) <img src="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"> <img src="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-member-end dark before shared-album-sheet-member-end dark after
shared-album-sheet-owner (standard) shared-album-sheet-owner standard before shared-album-sheet-owner standard after
shared-album-sheet-owner (dark) shared-album-sheet-owner dark before shared-album-sheet-owner dark after
shared-album-sheet-owner-end (standard) <img src="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"> <img src="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) shared-album-sheet-owner-end dark before shared-album-sheet-owner-end dark after

Also changed: filter-sheet (compact, font-1.3).


Generated by Claude Code

… 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
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Screenshot goldens updated

CI recorded the goldens on Linux and pushed f2be481 to this branch. The checks run again on it.

dark

  • Changed: shared-album-details-legacy, shared-album-details-modern, shared-album-sheet-member-end, shared-album-sheet-member, shared-album-sheet-owner-end, shared-album-sheet-owner

standard

  • Changed: shared-album-details-legacy, shared-album-details-modern, shared-album-sheet-member-end, shared-album-sheet-member, shared-album-sheet-owner-end, shared-album-sheet-owner

Review the images in Files changed before merging: merging accepts them.

alba-goldens-bot Bot and others added 6 commits December 1, 2026 18:10
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
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
@thisislvca
thisislvca merged commit 99e50c1 into main Dec 2, 2026
5 checks passed
@thisislvca
thisislvca deleted the claude/dazzling-bardeen-0vg0kz-ui-fixes branch December 2, 2026 02:09
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.

2 participants