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

Make Layer Properties Dialog Draggable #912

Open
gitspeaks opened this issue Jul 5, 2024 · 7 comments
Open

Make Layer Properties Dialog Draggable #912

gitspeaks opened this issue Jul 5, 2024 · 7 comments

Comments

@gitspeaks
Copy link

Currently, the Layer Properties dialog, which appears when double-clicking a layer to adjust transparency, is fixed in the center of the screen. This placement often obstructs important visual areas, hindering the ability to effectively preview changes live as transparency levels are adjusted.

Allowing the dialog to be moved freely across the screen would prevent it from covering crucial areas, thereby improving visibility and interaction during adjustments.

@cameronwhite
Copy link
Member

Which platform are you on? This might be something specific to the window manager's behaviour - testing on macOS the dialog can freely move

@gitspeaks
Copy link
Author

Standard Ubuntu 24.04 LTS desktop installation.

@cameronwhite
Copy link
Member

I think this might be a behaviour of GNOME shell - e.g. https://popey.com/blog/2021/01/my-gnome-tweaks/ mentions that the GNOME tweaks app can allow you to change whether modal dialogs are immovable or not
Let me know if that works for you?

I think the dialog should be modal with Pinta's current behaviour, since allowing interaction with the main window probably won't work without a lot more code changes to deal with the layer being removed while the dialog is open, etc

@gitspeaks
Copy link
Author

I personaly avoid installing "tweak" tools, don't know if a tweak will come and bite me in a different use-case...

In any case, the issue is not about allowing interaction with the "main" window but allowing to move the modal (like on the mac) so you can interact with it when placed in an area that does not obstructs important information, for example, moving it aside to see a live preview of how different transparency settings affect info at the center of the screen.

@cameronwhite
Copy link
Member

Right, but I don't think Pinta specifically is blocking the dialog from moving , but rather that's the default behaviour for these types of dialogs on your OS?

@gitspeaks
Copy link
Author

Correct. Apparently, this is a well known behavior in GNOME. I wouldn't hold my breath for it to get resolved. I think seeing a live preview of different opacity settings is quite useful. Please consider allowing customization of the UI to show the slider in the horizontal toolbar in the main window to avoid dealing with the fixed dialog issue.

@cameronwhite
Copy link
Member

Another alternative might be changing the dialog into a non-modal dialog or a Gtk.Popover, along with handling any potential issues with it no longer being model (e.g. the layer being removed while the dialog is open)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants