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

GTK4 Dialogs #25

Open
vvvvvvitor opened this issue Sep 1, 2023 · 6 comments
Open

GTK4 Dialogs #25

vvvvvvitor opened this issue Sep 1, 2023 · 6 comments

Comments

@vvvvvvitor
Copy link

Support modern system dialogs for GTK, like these:

Captura de tela de 2023-09-01 20-08-11

@98teg
Copy link
Owner

98teg commented Sep 2, 2023

I'm not sure about the scope or the features you asked for in this issue. Could you be a bit more specific or offer some examples/use cases?

@vvvvvvitor
Copy link
Author

vvvvvvitor commented Sep 2, 2023

The dialogs on Linux don't really look consistent with GNOME, they don't use the same dialog as the ones that the system uses, instead they use a custom GTK3 one, so what I'm asking for an update to them that uses the actual system dialogs.

@98teg
Copy link
Owner

98teg commented Sep 2, 2023

Could you provide more info about which distros look inconsistent? A screenshot of the dialog shown by this plugin vs. the one you would expect to see would be very useful. I have tested this plugin with Ubuntu and they look fine.

@vvvvvvitor
Copy link
Author

vvvvvvitor commented Sep 2, 2023

I can only provide screenshots from Fedora as that's the distro I use.

Expected (GNOME):
image
https://docs.gtk.org/gtk4/class.MessageDialog.html

Current:
Captura de tela de 2023-09-02 13-26-38

@98teg
Copy link
Owner

98teg commented Sep 2, 2023

I suspected this may happen. The library portable-file-dialogs checks your distro at compile time. Since I compiled this plugin on Ubuntu, you see the Ubuntu theme even on Fedora. I need to find a library that checks your distro at runtime, because I can only provide one version of this plugin for every Linux distro. In the meantime, you can compile this plugin on Fedora, and it should work.

@vvvvvvitor
Copy link
Author

The thing is, Ubuntu and Fedora use the same toolkit, GTK, so that shouldn't happen since Ubuntu is basically just a reskin of default Gnome. I believe the lib you're using might be outdated or uses a custom dialog for linux.

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

No branches or pull requests

2 participants