Other/future projects • Re: GTK2 revival
I think, UXP does not need system toolkit for widgets at all. Native theme support is mostly hacked and only actual on windows/mac (because on linux gtk2 theme is not native anymore). For me, gtk2 draws comboboxes incorrectly and i using Moonscape theme over gtk anyway. gtk3 themes are not native too (for gnome, native it libadwaita, i think, for kde gtk3 apps looks very ugly). And using toolkit only to pre-render components to get some non-native look is just extra overhead. Maybe it still needs system integration for native filepicker, but this might be done with kdialog/zenity or xdg-desktop-portal, not linking some toolkit directly. And without it there is XUL filepicker. As experiment, i ported it to SDL2 and everything (except of some SDL2 limitations) works. I inherited windows look&feel and it looks same as windows classic theme (much better, than semi-broken gtk2 themes) https://forum.palemoon.org/viewtopic.php?f=62&t=33066 I even implemented touchscreen support with full APZ (which does not seems to be fully async on all supported platforms now), so content might be scrolled while browser UI is busy Only things that not supported in SDL2 is drag and drop (it's only supports receiving drags), rich clipboard and child widgets for NPAPI. Everything might be implemented bypassing SDL2 and using X11 widgets directly, or implemented widgets directly over X11. If you want keep gtk2 alive only to support NPAPI, is not it better to implement native X11 support without extra gtk thing?
Discussion in the ATmosphere