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

Add uikit to experimental/examples/imageviewer #2571

Merged
merged 70 commits into from
Dec 22, 2022

Conversation

dima-avdeev-jb
Copy link
Contributor

@dima-avdeev-jb dima-avdeev-jb commented Dec 22, 2022

  • Add miniatures for big images. It speeds up launch.
  • Move most of the Desktop and Android code to commonMain.
  • Add UIKit target. For now, bitmap filters don't work for UIKIt.

@@ -0,0 +1,7 @@
package example.imageviewer.model

const val BASE_URL = "https://raw.githubusercontent.com/JetBrains/compose-jb/master/artwork/imageviewerrepo"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, If you want to run sample, change the url to:

"https://raw.githubusercontent.com/JetBrains/compose-jb/dima-avdeev/add-uikit-to-imageviewer/artwork/imageviewerrepo"

Copy link
Collaborator

@igordmn igordmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change colors of the new components, the rest of the PR is good.

experimental/examples/imageviewer/README.md Outdated Show resolved Hide resolved
val imageSize = IntSize(imageWithFilter.width, imageWithFilter.height)
val scalableState = remember(imageSize) { mutableStateOf(ScalableState(imageSize)) }
val visiblePartOfImage: IntRect = scalableState.value.visiblePart
Slider(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The slider and Back/Forward colors don't fit into imageviewer theme:
image

Let's change them to something else (more grayish probably, not sure)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

image

@dima-avdeev-jb dima-avdeev-jb merged commit a9ac763 into master Dec 22, 2022
@dima-avdeev-jb dima-avdeev-jb deleted the dima-avdeev/add-uikit-to-imageviewer branch December 22, 2022 19:18
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