kimmoli / paint

Simple paint application for Jolla
MIT License
10 stars 8 forks source link

[Feature suggestion] Landscape support for Paint #49

Open Olf0 opened 8 years ago

Olf0 commented 8 years ago

Paint 0.8.6 hangs on Startup, thus UI never shows. [Edit: This is incorrect, see below.] [...] Please, please fix that, as Paint is an really awesome SFOS application. [...]

kimmoli commented 8 years ago

Only thign i can get apps not starting, is that the booster failed somehow, and it is still running.

ps aux | grep paint

You have tried to reboot? (i assume so) Phone or tablet? You could try to uninstall it, and then completely remove /usr/share/harbour-paint/ -folder if it exists.

Run paint from command-line with following env vars, it should provide a lot more output.

QT_DEBUG_PLUGINS=1 harbour-paint
QML_IMPORT_TRACE=1 harbour-paint

And you could also try latest 0.8.30 build http://repo.merproject.org/obs//home:/kimmoli:/vendor-meego/sailfishos_latest_armv7hl/armv7hl/harbour-paint-0.8.30-67.1.armv7hl.rpm

Olf0 commented 8 years ago

Oh, shame on me: I discovered this before and forgot to file a feature request. Actually I completely forgot, that Paint does not support landscape orientation properly. When started in landscape orientation, I looks as if Paint just hangs (unless one realises, that it actually runs, but with the menu off screen and the canvas cropped).

So this "bug report" should have been this feature suggestion:

Paint 0.8.6 does not properly support landscape mode. In landscape orientation, Paint's menu is off screen and the canvas cropped. Suggestion for a solution: Do "not rotate" the canvas, i.e. rotate it according to the device orientation, so that the canvas appears to be fixed on the screen. But do redraw the menu bar on the new top of the screen. Actually, landscape orientation would be a bonus, as the menu bar could be fully displayed without the need for scrolling sideways. And it would be easier to paint in places of the canvas, where the menu bar is in the way (e.g. start drawing a line "under" it), as one would be able to "rotate the menu bar away" (except for a small rectangle).

As many people install "Patches" (for "Patchmanager" from "Warehouse" / , as "Allow any rotation for all SailfishOS applications / UI rotate free" by coderus or "Allow any rotation except inverted portrait for SailfishOS apps" by alina) for using their SailfishOS device primarily in landscape orientation, any way of making Paint in landscape orientation useable would be helpful. Maybe a simple switch in Paint's settings to make Paint start up in either landscape or portrait mode (independent of the real orientation of the device) is easier to implement, and definitely already an enhancement (making Paint in landscape usable), as currently Paint 0.8.6 is always in portrait mode. With the default configuration, nothing would change (i.e. Paint is always in portrait mode, just as it currently behaves), but one would gain the ability to explicitly set Paint to run in landscape mode.

Kudos for this excellent and feature rich native application. IMO, no other native drawing application comes close to Paint's look and functionality. Thanks!

I uploaded five PNGs to depict this issue.

On 22 July 2016 09:26:43 CEST, Kimmo Lindholm notifications@github.com wrote:

Only thign i can get apps not starting, is that the booster failed somehow, and it is still running. [...]

No component of Paint is still running.

You have tried to reboot? (i assume so)

Sure.

Phone or tablet?

This is on an original Jolla phone with SailfishOS 2.0.1.11

You could try to uninstall it, and then completely remove /usr/share/harbour-paint/ -folder if it exists.

Run paint from command-line with following env vars, it should provide a lot more output.

QT_DEBUG_PLUGINS=1 harbour-paint
QML_IMPORT_TRACE=1 harbour-paint

And you could also try latest 0.8.30 build http://repo.merproject.org/obs//home:/kimmoli:/vendor-meego/sailfishos_latest_armv7hl/armv7hl/harbour-paint-0.8.30-67.1.armv7hl.rpm