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

+7 -6
View File
@@ -4,6 +4,7 @@ import '../connector/meshcore_protocol.dart';
import '../l10n/app_localizations.dart';
import '../models/contact.dart';
import '../theme/mesh_theme.dart';
import '../theme/theme_icons.dart';
/// Shared node-type visuals and last-seen formatting for contact lists
/// (contacts, discovery, nearby-node scan).
@@ -25,16 +26,16 @@ Color contactTypeColor(int type) {
}
}
/// Node-type avatar icon. Returns null for chat nodes so [AvatarCircle]
/// shows initials.
IconData? contactTypeIcon(int type) {
/// Node-type avatar icon slot (themes can replace these). Returns null for
/// chat nodes so [AvatarCircle] shows initials.
ThemeIconSlot? contactTypeIconSlot(int type) {
switch (type) {
case advTypeRepeater:
return Icons.cell_tower;
return ThemeIconSlot.repeater;
case advTypeRoom:
return Icons.meeting_room;
return ThemeIconSlot.room;
case advTypeSensor:
return Icons.sensors;
return ThemeIconSlot.sensor;
default:
return null;
}