Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): show full screen image viewer when clicking on images #578

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

JunkFood02
Copy link
Collaborator

@JunkFood02 JunkFood02 commented Feb 3, 2024

Close #545
Close #372

Implementation details:

  • Use zoomable() modifier from https://github.com/saket/telephoto for zoom and pan images
  • Use a full screen Dialog to open a modal window (the neatest workaround I can think of before we can achieve shared element transition in Compose)

Maybe we should add an option for saving the image too

CC @nvllz

Screen record:

telegram-cloud-document-5-6192968019036082054.mp4

@JunkFood02 JunkFood02 requested a review from Ashinch February 3, 2024 06:16
@nvllz
Copy link
Contributor

nvllz commented Feb 3, 2024

Thank you very much! It works really well.
The only thing I would think about is slightly increasing the zoom range, because sometimes it's harder to see smaller details in landscape images.

Great job, shame on me I didn't make it this way :D

@Ashinch Ashinch added this to the 0.9.13 milestone Feb 3, 2024
@Ashinch Ashinch merged commit 0c31475 into Ashinch:dev Feb 3, 2024
1 check passed
Ashinch added a commit that referenced this pull request Feb 6, 2024
* build(deps): bump up dependencies, compile sdk, and gradle version (#502)

* build(deps): bump up dependencies, compile sdk, and gradle version

* build(deps): remove redundant safe-args plugin

* build(deps): update Compose BOM to `2024.01.00` & compiler to `1.5.8`

* fix(i18n): configuration loss when switching locale (#541)

* fix(i18n): configuration loss when switching locale

* feat(locale): enable auto-localeconfig

* feat(i18n): add languages to in-app language picker (#571)

* feat(i18n): add languages to in-app language picker

* fix(i18n): locale system settings not working for Android 13

* feat(i18n): show selected language at settings page

* fix(ci): ignore ExtraTranslation for linter

* feat(i18n): add fallback in in-app language picker for A13+

* chore: clean up

* fix(ui): ProgressIndicator crashes in m3 1.1.2

* fix(ui): NavigationBarItem color

* feat(ui): grey out read articles even if starred (#547)

* refactor(ui): improve add account dialog

* fix(ui): accessing listState on io thread causes app to crash

* fix(ui): NavigationBar text color

* feat(ui): show full screen image viewer when clicking on images (#578)

* feat(ui): add crash report activity to handle uncaught exceptions (#576)

* feat(ui): swipe up and down to switch between articles (WIP)

* feat(ui): update animation

* docs(ui): add comments on pull to load implementation

* feat(ui): move the indicator to another file

* build: revert changes

* feat(ui): make the transition directions match the content changes

---------

Co-authored-by: MauroGuida <57829432+MauroGuida@users.noreply.github.com>
Co-authored-by: Ash <Glaxyinfinite@outlook.com>
Co-authored-by: Ash <Ashinch@outlook.it>
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.

3 participants