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

+9 -7
View File
@@ -17,28 +17,30 @@ class MessageBubbleColors {
required this.meta,
});
/// Outgoing bubbles use [MeshPalette.me] / [MeshPalette.meBorder] /
/// [MeshPalette.meInk]; a failed send switches to the error container.
/// Outgoing bubbles use the theme's [MeshBubbleTheme]; a failed send
/// switches to the error container.
factory MessageBubbleColors.of(
ColorScheme scheme, {
BuildContext context, {
required bool isOutgoing,
bool isFailed = false,
}) {
final scheme = Theme.of(context).colorScheme;
final bubble = MeshBubbleTheme.of(context);
final text = isFailed
? scheme.onErrorContainer
: isOutgoing
? MeshPalette.meInk
? bubble.meInk
: scheme.onSurface;
return MessageBubbleColors(
background: isFailed
? scheme.errorContainer
: isOutgoing
? MeshPalette.me
? bubble.me
: scheme.surfaceContainerLow,
border: isFailed
? scheme.error
: isOutgoing
? MeshPalette.meBorder
? bubble.meBorder
: scheme.outlineVariant,
text: text,
meta: text.withValues(alpha: 0.65),
@@ -109,7 +111,7 @@ class MessageBubbleFrame extends StatelessWidget {
@override
Widget build(BuildContext context) {
final colors = MessageBubbleColors.of(
Theme.of(context).colorScheme,
context,
isOutgoing: isOutgoing,
isFailed: isFailed,
);