Julian Winkler
6dfd0d1d4b
use XDG-Portal to detect night mode
...
Get dark mode property directly from XDG portal instead of extracting it
from the GTK theme. Also we pass the value to GTK, which would normaly
be done by libadwaita.
This also has the advantage, that we can switch the theme at runtime.
but for now the change will only affect newly created Activities.
2024-11-01 23:23:58 +01:00
Julian Winkler
f3092fd4bd
implement file sharing by file descriptor
...
Using custom gdbus code, as libportal doesn't expose the raw
org.freedesktop.portal.OpenURI.OpenFile method.
2024-10-03 15:57:44 +02:00
Mis012
92e2c06347
make sure the apk path is reliably set in the PackageInfo
2024-06-19 22:35:50 +02:00
Julian Winkler
cc5d4a3cb3
use libandroidfw for resource XML parsing
...
androidfw is implemented in native code and has much better performance
than ARSClib
2024-05-12 16:49:14 +00:00
Julian Winkler
276b5ca7ef
add more APIs needed for NewPipe
2024-03-17 20:02:50 +01:00
Julian Winkler
a3a7def204
night-mode: check for GTK_THEME env var and prefer-dark setting
...
GTK_THEME env var does not influence gtk-theme-name property. So it has
to be checked by hand.
2024-03-10 23:00:42 +01:00
Julian Winkler
005e2299bd
automatically enable UI_MODE_NIGHT when gtk-theme-name contains "dark"
...
gtk-theme-name is only checked once at start up
2024-03-10 12:05:33 +01:00