-
Notifications
You must be signed in to change notification settings - Fork 213
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
[desktopintegration] kdialog error? #116
Comments
Can you post a hello world with fltk? Could it be used to be embedded right into runtime.c even? |
Here's a very simple dialog tool using fltk: https://gist.github.com/darealshinji/74985e3474574fc2bee456555a27b517 Runtime dependencies in this case are:
|
Thanks for the example, look and feel is a bit non-native, still wondering if there are no more straightforward native solutions. |
The problem here is KDE. Qt dialogs have a native look and feel to KDE but not to other environments, and they may not even run unless Qt libraries are already installed. GTK+ on the other side may look really ugly on KDE. The solution would be either to write two dialog tools and figure out at runtime whether we're on KDE or not, or you can use a toolkit like FTLK which is small, portable and requires only X11 libs. edit: Maybe this looks better: Usage: Code: https://gist.github.com/darealshinji/fe1845d4c90d62eee92c6bcf2860d2c3 |
Thanks @darealshinji. Much better, but still not really "native" looking. I need to play with it a bit under different Gtk+/KDE themes. |
Looks very similar to https://en.wikipedia.org/wiki/Zenity but I've no idea how well Zenity performs / looks on different desktop environments. EDIT: Doh! I must have been thinking of a different project. I forgot AppImages use zenity already, apologies for the noise ;-) |
A little update: https://gist.github.com/darealshinji/fe1845d4c90d62eee92c6bcf2860d2c3 I hope this looks better. Options are:
Use only By the way, unless you use the native toolkit (Qt4, Qt5, GTK2, GTK3) it will never look 100% native. |
Perhaps: Do you want to... 3 buttons: |
Here's my new draft, including an attempt to do some localization. |
Wow, looks impressive. I'd use the system color version but without the red X. The second entry should be "Create menu entry and launch app". |
Should I change the close button or should the window just use the window manager decoration instead? (you can actually drag the window by clicking on the background) |
I'd say window manager decoration |
Yeah, I'd say so too. I've attached the sources and the tool. |
I've added localization support: https://gist.github.com/darealshinji/fe1845d4c90d62eee92c6bcf2860d2c3#file-appimage_dialog-cpp-L66 |
Here are all source and images files, licenses and a build script: https://github.com/darealshinji/AppImageKit/tree/appimage-dialog |
Thank you. Would you like to add the logic from the old |
I haven't tested it but I think this should work: https://gist.github.com/darealshinji/25cce18c4a8d6c9baae86f214de9c923#file-desktopintegration-sh-L203 Scroll down the revisions if you want to see the important changes: https://gist.github.com/darealshinji/25cce18c4a8d6c9baae86f214de9c923/revisions |
Source files and build script added to AppImageKit: https://github.com/darealshinji/AppImageKit/tree/appimagetool_master_fltk |
AppImage/AppImageKit@b313884#commitcomment-19587596
The text was updated successfully, but these errors were encountered: