implemented a customizable chat background system with support for patterns, solid colors, and gallery images; added a dedicated settings page with live preview and adjustable blur/dim effects, updated the image cropper to support flexible aspect ratios for wallpapers, and integrated file cleanup logic during account logout.

This commit is contained in:
2026-05-31 19:20:18 +02:00
parent 5ebf5bccdb
commit 6e12da08c0
14 changed files with 771 additions and 14 deletions
@@ -3,6 +3,7 @@ import 'dart:io';
import 'package:flutter/material.dart';
import '../../../../state/app/modules/app_modules.dart';
import '../../../../storage/chat_background_settings.dart';
import '../../../../storage/dev_tools_settings.dart';
import '../../../../storage/file_settings.dart';
import '../../../../storage/file_view_settings.dart';
@@ -45,6 +46,15 @@ class DefaultSettings {
drafts: {},
draftReplies: {},
),
chatBackgroundSettings: ChatBackgroundSettings(
// Mirrors the previous hard-coded behaviour: tiled pattern, no effects.
type: ChatBackgroundType.pattern,
fit: ChatBackgroundFit.tile,
colorValue: null,
imageVersion: 0,
dim: 0,
blur: 0,
),
fileSettings: FileSettings(
sortFoldersToTop: true,
ascending: true,