Commit Graph

9 Commits

Author SHA1 Message Date
Julian Winkler
e652089252 map Android UnifiedPush to DBus UnifiedPush 2025-04-21 07:31:06 +02:00
Julian Winkler
b4f7c64cef Context.updateConfig(): handle XDG-portal unvavailablility
The XDG-portal DBus instance is not available to applications launched
from SSH on postmarketOS.
2024-12-30 09:46:52 +01:00
Julian Winkler
1fd2638c57 set Configuration.screenWidthDp and Configuration.screenHeightDp 2024-12-13 22:32:04 +01:00
Julian Winkler
1fb5be92dc fix build with libportal < 0.8 2024-11-13 23:02:55 +01:00
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
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