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:
1 parent
780183b586
commit
4a574185e8
124 files changed
+12686
-292
No files matched your search
@@ -6,6 +6,7 @@ import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
||||
import 'package:flutter_map/flutter_map.dart';
|
||||
|
||||
import '../models/app_settings.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import 'app_settings_service.dart';
|
||||
|
||||
enum MapRasterSourcePreset {
|
||||
@@ -506,6 +507,19 @@ class MapTileCacheService extends ChangeNotifier {
|
||||
layer = ColorFiltered(colorFilter: filter, child: layer);
|
||||
}
|
||||
|
||||
// Custom themes wash their background color over the tiles so the map
|
||||
// matches the rest of the app. Kept light so roads and labels stay clear.
|
||||
final tint = MeshMapTheme.of(context).tileTint;
|
||||
if (tint != null) {
|
||||
layer = ColorFiltered(
|
||||
colorFilter: ColorFilter.mode(
|
||||
tint.withValues(alpha: MeshMapTheme.tileTintStrength),
|
||||
BlendMode.srcATop,
|
||||
),
|
||||
child: layer,
|
||||
);
|
||||
}
|
||||
|
||||
if (opacity < 1) {
|
||||
layer = Opacity(opacity: opacity, child: layer);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user