Add custom themes, holiday themes, chat backgrounds and holiday animations

- Themes: name + background + accent, derived surfaces/text/bubbles; editor
  with live preview; share codes and .jsonl import/export
- Theme icons: swap tab, send, settings, node avatar and map marker icons for
  named icons or pictures (lossless JPEG XL)
- Chat backgrounds per channel/DM (color or JPEG XL picture with fade);
  themes can set one, optionally for every chat
- Map follows custom themes (panels, accent, tile tint, markers)
- Holiday themes (Halloween, Thanksgiving, Christmas, New Year's) with
  generated backgrounds, icons and map markers; automatic switching from
  17 days before each holiday
- Holiday greeting animations (bats, turkeys, Santa, fireworks) matched
  across all app languages via translation strings
This commit is contained in:
zjs81 committed 2026-10-31 13:43:34 -07:00
1 parent 780183b586
commit 4a574185e8
124 files changed
+12686 -292

No files matched your search

+39 -1
View File
@@ -23,6 +23,7 @@ import '../widgets/sync_progress_overlay.dart';
import '../widgets/translation_settings_section.dart';
import '../helpers/snack_bar_builder.dart';
import 'map_cache_screen.dart';
import 'themes_screen.dart';
class AppSettingsScreen extends StatelessWidget {
/// Scrolls the image-message settings into view once, on first build.
@@ -192,8 +193,15 @@ class AppSettingsScreen extends StatelessWidget {
label: Text(context.l10n.appSettings_themeDark),
),
],
selected: {settingsService.settings.themeMode},
// A custom theme sets its own brightness, so no stock mode
// is selected while one is active; picking a mode returns
// to the stock theme.
emptySelectionAllowed: true,
selected: settingsService.activeCustomTheme == null
? {settingsService.settings.themeMode}
: const <String>{},
onSelectionChanged: (selection) {
if (selection.isEmpty) return;
settingsService.setThemeMode(selection.first);
},
),
@@ -201,6 +209,36 @@ class AppSettingsScreen extends StatelessWidget {
),
),
const Divider(height: 1, indent: 16),
MeshNavTile(
icon: Icons.palette_outlined,
title: context.l10n.appSettings_colorTheme,
subtitle:
settingsService.activeCustomTheme?.name ??
context.l10n.themes_default,
trailing: settingsService.activeCustomTheme == null
? null
: ThemeSwatch(
background: settingsService.activeCustomTheme!.background,
accent: settingsService.activeCustomTheme!.accent,
size: 32,
),
onTap: () => Navigator.of(
context,
).push(MaterialPageRoute(builder: (_) => const ThemesScreen())),
),
const Divider(height: 1, indent: 16),
SwitchListTile(
contentPadding: const EdgeInsets.symmetric(
horizontal: 16,
vertical: 4,
),
secondary: const Icon(Icons.celebration_outlined, size: 24),
title: Text(context.l10n.appSettings_holidayAnimations),
subtitle: Text(context.l10n.appSettings_holidayAnimationsSubtitle),
value: settingsService.settings.holidayAnimationsEnabled,
onChanged: settingsService.setHolidayAnimationsEnabled,
),
const Divider(height: 1, indent: 16),
MeshNavTile(
icon: Icons.language_outlined,
title: context.l10n.appSettings_language,