98teg / NativeDialogs

Native Dialogs is a plugin for Godot that allows you to interact with OS-specific dialogs, such as notifications, messages and file dialogs.
MIT License
156 stars 8 forks source link

GTK4 Dialogs #25

Open vvvvvvitor opened 1 year ago

vvvvvvitor commented 1 year ago

Support modern system dialogs for GTK, like these:

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

98teg commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.