#8668: [ShowImage] Improved zoom button behavior
--------------------------------------+----------------------------
Reporter: mmadia | Owner: leavengood
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: Applications/ShowImage | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 8665
Has a Patch: 0 | Platform: All
--------------------------------------+----------------------------
Comment (by leavengood):
How crazy would a three state (well sort of 2 and half states) zoom button
be?
- First zoom button click, State 1: make window fit image, no image
scaling (humdinger's idea.)
- Second zoom button click, State 2: make window maximized, scale image to
fix exactly inside the maximized window (with black bars of course for
images whose aspect ratio does not match the screen.)
- Subsequent zoom button clicks: toggle between State 1 and 2 (note, we
would never go back to whatever the non-optimal original size was.)
This may require a bit of state handling in ShowImage to remember the
State 1 size and zoom level, but otherwise should be easy enough.
I also suspect the Shrink to Fit and Zoom to Fit options will make this
more tricky. I'd have to test and see what needs to be adjusted.
--
Ticket URL: <https://dev.haiku-os.org/ticket/8668#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.