gabm / Satty

Satty - Modern Screenshot Annotation. A tool inspired by Swappy and Flameshot.
Mozilla Public License 2.0
388 stars 18 forks source link

New Feature: Show Toolbars Only When The Mouse Hovered In #42

Open mistgc opened 5 months ago

mistgc commented 5 months ago

The toolbars don't display if the mouse doesn't hover in the app window.

And show the toolbars when we hover in.

gabm commented 5 months ago

thank you for that idea.. could you explain what we try to achieve with this feature?

mistgc commented 5 months ago

Ha-ha. Imagine a scenario where a programmer is writing code while looking at other people's code snippets. Like this: image

mistgc commented 5 months ago

We could pin some screenshots on the screen.

gabm commented 5 months ago

okay, so an image viewer-like functionality? isn't that what image viewers like imv are for?

mistgc commented 5 months ago

While this is true, we can add annotations to the image.

gabm commented 5 months ago

okay.. well I think there is nothing wrong with hiding the toolbars on demand. I would prefer a shortcut for this, like Ctrl-T for "toggle toolbar" or something like this.

I must say that I am a big fan of explicit behaviour (shortcut/button toggles toolbar) and not dynamic behaviour (mouse hover toggles toolbar). Further I think that should be "opt-in" .. not the default behaviour. There might be a setting "hide-toolbar-on-startup" or something similar..

I am happy to accept PRs

mistgc commented 4 months ago

I implemented the basic functionality #45 , but there isn't support for configuration.

mistgc commented 4 months ago

Now, it supports configuration https://github.com/gabm/Satty/pull/45/commits/6fb3d689ada2445f7dbcb442adbc15e71f52df9a. However, it doesn't support hovering to show toolbars yet.

KAGEYAM4 commented 4 months ago

What are your thoughts on Krita like toolbar which gets opened using right-mouse-button ?

image

mistgc commented 4 months ago

I think most people find this very convenient, but for users who frequently use keyboard shortcuts (such as Window Manager, Vim-like Editor, Emacs), it is not convenient.

KAGEYAM4 commented 4 months ago

You're right, Plus it's will increase development time which would be wasteful as this dosen't offer much as keyboard based implementation will still be there plus the hovering toolbar.

alteriks commented 4 months ago

I like the way that flameshot took. 'toolbar' is outward of the image. image Buttons reflow if the selection was made near the screen edge. image

gabm commented 4 months ago

how does it work when you want to edit the fullscreen image, e.g. without crop?

alteriks commented 4 months ago

It's been ages since I took fullscreen shot. Using flameshot screen asks only about saving file. I don't recall if you could edit fullscreen shot after it had been taken.

gabm commented 4 months ago

the first basic functionality has been released as https://github.com/gabm/Satty/releases/tag/v0.10.0