feat(app): redesigned interface, polls, drafts, forwarding and mentions

A new look across the app and a set of everyday messaging features.

Interface
- Home screen with Chats, Contacts and Settings tabs, a large title,
  search across chats and message text (diacritics-insensitive), filters
  and pinned chats.
- Conversation view with a translucent header and composer, grouped
  bubbles, author avatars and colours in groups, swipe to reply, an
  "N new messages" marker, a jump-to-latest button and in-chat search.
- Contact and group profiles: verification, shared photos, groups in
  common, disappearing messages, mute, block; members, admin badges,
  adding people, rename and leave for groups.
- Full-screen photo viewer that pages through the whole conversation.
- A stable avatar colour per person and a clearly visible read state.

Messaging
- Polls in chats and groups, single or multiple choice, with votes that
  can be changed or withdrawn; older clients see them as text.
- Drafts survive leaving a chat and show in the chat list.
- Forwarding of messages, photos, files and voice messages.
- Notes to self: a local-only, encrypted chat that never reaches the
  relay.
- @mentions in groups that notify even when the group is muted.
- Typing indicators sent as ephemeral messages, opt-in and mutual like
  read receipts.
- Delivery and read times per message and per group member.
- Profile photos, cropped, resized and stripped of metadata, delivered
  encrypted to contacts.
- Voice message playback at 1.5x and 2x.
- Call buttons in 1:1 chats and call log entries.

Fixes
- Muted groups no longer notify: muting was checked against the
  author's chat instead of the group.
- A blocked contact could unblock itself by changing its delivery
  address.
- Read receipts no longer regress to delivered when a late delivery
  receipt arrives.
- A message marked as failed corrects itself once it is delivered.
- Double ticks in groups now mean delivered to every member.
This commit is contained in:
Julius Joska
2026-10-03 22:44:53 +02:00
parent 933a74c900
commit 5246a97db2
56 changed files with 12028 additions and 1668 deletions
+46
View File
@@ -19,6 +19,7 @@ class SepotColors {
// Text
static const Color textPrimary = Color(0xFFF0EEE8); // mléko
static const Color textSecondary = Color(0xFF9AA0B5); // mlha
static const Color textEmphasis = Color(0xFFC4C8D6); // mlha, zvýrazněná
static const Color textMuted = Color(0xFF626880);
// Akcentní barvy
@@ -39,12 +40,57 @@ class SepotColors {
// Bubliny zpráv — odeslaná teplá (ember), přijatá chladná (povrch)
static const Color bubbleSent = Color(0xFFF0795A);
static const Color bubbleReceived = Color(0xFF191C28);
/// Plovoucí lišty nad obsahem (hlavička chatu, pole pro psaní, navigace).
/// Průhlednost nese rozmazání pod sebou — bez něj by působila jako chyba.
static const Color glass = Color(0xC712141D);
static const Color glassBorder = Color(0x0FFFFFFF);
/// Podklad hlavičky profilu — o tón teplejší než noc, ať avatar vystoupí.
static const Color hero = Color(0xFF14131A);
}
/// Tóny avatarů: tlumený podklad + světlejší inkoust téže barvy. Člověk
/// dostane tón podle otisku klíče, takže má všude a u všech stejnou barvu.
class SepotTint {
const SepotTint(this.background, this.ink);
final Color background;
final Color ink;
static const all = [
SepotTint(Color(0xFF3A2A33), Color(0xFFF2A58F)), // ember
SepotTint(Color(0xFF22352B), Color(0xFFA6CFB2)), // sage
SepotTint(Color(0xFF1E2A3A), Color(0xFF9FB6D6)), // mist
SepotTint(Color(0xFF3A3222), Color(0xFFE6C27A)), // jantar
SepotTint(Color(0xFF2C2638), Color(0xFFC3B2E0)), // levandule
];
/// Stabilní napříč spuštěními — String.hashCode to Dart nezaručuje.
static SepotTint of(String seed) {
var h = 0x811c9dc5;
for (final c in seed.codeUnits) {
h = ((h ^ c) * 0x01000193) & 0xFFFFFFFF;
}
return all[h % all.length];
}
}
/// Témata aplikace
class SepotTheme {
SepotTheme._();
/// Velký nadpis hlavních karet (Chaty, Kontakty, Nastavení).
static const largeTitle = TextStyle(
fontSize: 32,
fontWeight: FontWeight.w800,
letterSpacing: -0.6,
color: SepotColors.textPrimary,
);
/// Výška lišty s velkým nadpisem.
static const largeTitleBarHeight = 76.0;
static ThemeData get dark {
return ThemeData(
useMaterial3: true,