Sync theme with Android AppSupport

SailfishOS has ambiences, and they are wonderful. You can change the look and feel of not just the home screen, but also all of the Silica-based apps with just a click. It could be expanded to Android AppSupport too. Android has dark mode, and so does Sailfish. It would be very nice if you could switch between dark and light ambiences in SailfishOS and it would be reflected in Android apps as well.

Additionally, since version 12 Android has the Monet theme engine. Normally, Money extracts a color from the currently set wallpaper, and most Material 3-based applications respect this and recolor their highlighted elements into this color. It would be even better if the Monet colors in AppSupport would sync with the current ambience colors set in SailfishOS.

Of course, these two could be done as an option in AppSupport settings, so people who don’t want this behavior could turn it off.

9 Likes

Ambience colors are stored as dconf values under /desktop/jolla/theme/color/.

Maybe AppSupport can be instructed in some startup script to use them.

4 Likes

Is there any quick way to toggle the light/dark theme of android without having to go into android settings (tapping Android-version number)? The automated swap to change theme at sunrise and sundown does not seem to work if AAS happens to be turned off at that time. Thus I have blasted my eyes more than once when going into settings to toggle dark mode.

It sounds amazing to have ambiance colours in AAS but I imagine this will require a lot of work. Could a basic ā€œandroid theme toggleā€ in top menu be a reasonable first step?

What may be even more important is to inherit the font size of SFOS to Android Apps. Since my eyes are getting worse I turned fonts a bit bigger on SFOS, but in Android Apps they are very small by default (on JP 2026 at least) and it’s not possible to increase their size.

You can edit the font size of android apps in android settings.
Go to Settings and scroll down to Android AppSupport and then tap the version number about 5 times or so. This will open Android Settings, and in avaliability section I think font size will be the first option.

1 Like

Also there seems to be this project going on.

Tried it out and it works quite well. No idea if vibe coded or not but open source at least.

Great, thank you. That was exactly what I was looking for, that will do for now!

Still it would be nice to have some sort of automatic sync of the most important settings from SFOS to AAS, or maybe a subpage in the AAS settings where you can set some parameters manually.

If it’s hidden like this nobody but experienced SFOS users will find it.

1 Like

Which is very likely why it’s done this way. After all there’s settings in there that may well break AAS or make it buggy.

Its just a bunch of scripts (3), a background service and a small helper service.

I have basic scripting knowledge (i suck at regex and whatnot). So even though this wasn’t strictly ā€˜vibe coded’, LLM assistance was heavily invloved.

Initially I made a very simple script to sync/send the color to android. I used Automagic app, with the ambience dbus as the trigger. But then more ideas came along. So I decided to create its own background service that also gets called on settings changes, as well as, when Appsupport starts in case any change was made when it was off.

I also like to mention that nothing is added from the scripts/app’s side, just editing whats already there in appsupport (changing font sizes, overlays, etc). However, as for any app, one should always install and use at their own risk (& project is available on github).

I’ve tested on JP2 and XA2. While coloring options/edits doesn’t work on XA2’s appsupport (missing overlays), everything works exceptionally well on JP2. As for the rest of the Xperia devices, reports of what works and what doesn’t are welcomed.

I’ve just added the text size sync, and a pure black background options. But since openrepos is currently in read-only mode, I’ve uploaded the latest rpm to Github

this is amazing, thank you for making this!