Skip to content

Fix missing settings action bar and normalise definition icon sizes#7

Merged
baz8080 merged 1 commit intomasterfrom
baz8080/fix-settings-action-bar-and-icon-sizes
May 5, 2026
Merged

Fix missing settings action bar and normalise definition icon sizes#7
baz8080 merged 1 commit intomasterfrom
baz8080/fix-settings-action-bar-and-icon-sizes

Conversation

@baz8080
Copy link
Copy Markdown
Owner

@baz8080 baz8080 commented May 5, 2026

Summary

  • Settings action bar: Added MaterialToolbar to the preferences screen layout and wired it up in EditPreferencesActivity with setSupportActionBar + a back-navigation handler — fixing the pre-existing missing action bar.
  • Icon sizing: Standardised the share/play/favourite ImageViews on definition cards to 48dp touch targets with 12dp padding, matching Material Design system defaults (previously 40dp/8dp).
  • Play icon path: Expanded the play-arrow vector path from M8 5v14l11-7z to M5 3l15 9-15 9V3z so it visually fills its viewport as well as the share and star icons do, removing the apparent size mismatch between the three icons.
  • Gradle: Upgraded wrapper, AGP, and Kotlin plugin versions.

Test plan

  • Open Settings — confirm action bar appears with title and a working back (←) button
  • Search for a word — confirm share, play, and favourite icons on definition cards appear the same visual size
  • Tap each icon — confirm share, TTS playback, and favourite toggle all still work correctly
  • Verify the app builds cleanly against the updated Gradle versions

🤖 Generated with Claude Code

- Add MaterialToolbar to activity_preferences layout and wire it up in
  EditPreferencesActivity with a back-navigation handler, fixing the
  pre-existing missing action bar in the Settings screen.
- Standardise share/play/favourite ImageViews to 48dp touch targets with
  12dp padding (Material Design system defaults), replacing the previous
  40dp/8dp values.
- Expand the play-arrow vector path so it fills its 24dp viewport as
  well as the share and star icons do, removing the visual size mismatch.
- Upgrade Gradle wrapper and AGP/Kotlin plugin versions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@baz8080 baz8080 merged commit 9a321cb into master May 5, 2026
1 check passed
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