v0.4.0: bubble for Android 0.4.0 — an inverted (lighter) icon, chosen in Settings on both

The original icon is a little dark: resources/icon-inverted.png and
ic_launcher_inverted.png are its negative (alpha kept).

- Desktop: Settings → Appearance → Icon (Dark / Inverted), saved on click;
  sets the window icon and rewrites the launcher's installed copy
- Android: Settings → Icon; two launcher activity-aliases, one enabled
This commit is contained in:
2026-11-06 17:20:56 -08:00
parent 5e5ef18e01
commit ec9e472265
14 changed files with 127 additions and 12 deletions
@@ -81,6 +81,18 @@ public final class SettingsActivity extends BaseActivity {
notify.setOnCheckedChangeListener((v, on) -> Config.prefs(c).edit().putBoolean("notifications", on).apply());
box.addView(notify);
section("Icon");
boolean inv = Icons.isInverted(c);
row("Launcher icon", inv ? "Inverted (lighter)" : "Dark", v -> {
new AlertDialog.Builder(c).setTitle("Launcher icon")
.setSingleChoiceItems(new String[] {"Dark", "Inverted (lighter)"}, inv ? 1 : 0, (d, i) -> {
if ((i == 1) != inv) Icons.setInverted(c, i == 1);
d.dismiss();
changed();
}).show();
});
note("The home screen can take a few seconds to show the new one.");
section("Accounts");
Config cfg = Config.get(c);
kv("voip.ms", cfg.voipUser == null ? "Not set up" : Sync.voipError != null ? "⚠ " + Sync.voipError : cfg.voipUser);