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.
This pull request introduces several enhancements and refactors to the screenshot functionality in the
adbpad
project. Key changes include the introduction of a split-pane UI for the screenshot screen, new navigation methods for screenshots, and the replacement of theScreenshotGallery
with a newScreenshotExplorer
component.UI Enhancements:
ScreenshotScreen
usingHorizontalSplitPane
andSplitPaneState
to improve the user interface for managing screenshots. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotScreen.kt
, src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotScreen.ktR49-L82)Navigation Improvements:
nextScreenshot
andpreviousScreenshot
methods toScreenshotStateHolder
to enable keyboard navigation through screenshots. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotStateHolder.kt
, src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotStateHolder.ktR121-R132)ScreenshotScreen
to include navigation callbacks foronNextScreenshot
andonPreviousScreenshot
. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotScreen.kt
, src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/ScreenshotScreen.ktR49-L82)Component Refactoring:
ScreenshotGallery
with a newScreenshotExplorer
component that supports keyboard navigation and a more compact layout. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/component/ScreenshotExplorer.kt
, src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/component/ScreenshotExplorer.ktR1-R100)ScreenshotGallery
component. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/component/ScreenshotGallery.kt
, src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/component/ScreenshotGallery.ktL1-L77)Code Clean-up:
ScreenshotHeader
andScreenshotViewer
components to streamline the codebase. (src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/component/ScreenshotHeader.kt
, [1];src/jvmMain/kotlin/jp/kaleidot725/adbpad/ui/screen/screenshot/component/ScreenshotViewer.kt
, [2]