Skip to content

feat(ios): soft gradient on own bubbles, edge on dark incoming - #58

Merged
fighxy merged 3 commits into
mainfrom
claude/sweet-ramanujan-3q64b7
Nov 12, 2026
Merged

fighxy merged 3 commits into
mainfrom
claude/sweet-ramanujan-3q64b7

Conversation

@fighxy

@fighxy fighxy commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Что изменилось

  • Свои пузыри сохраняют прежний цвет: светло-зелёный днём, синий ночью. Теперь у них мягкий градиент сверху вниз в пределах этого цвета (maxlyOutgoingTop → maxlyOutgoingBottom): ночью #33608F → #25486B, днём #E8FFD3 → #D9F7BD. Белый текст на самом светлом краю — около 5.9:1.
  • Градиент идёт по рамке пузыря, а не экрана. Ячейки ленты живут в UICollectionView, и градиент на весь экран означал бы перерисовку каждой ячейки на каждом кадре прокрутки.
  • Чужие пузыри в тёмной теме без фото-обоев получили тонкую светлую обводку (0.5 pt, белый 7%), чтобы не сливаться с фоном ленты. Цвет прежний.
  • Просвечивание под текстом не добавлялось: на фото-обоях оно ухудшает читаемость, а размытие под каждым пузырём дорого для длинной ленты. Обоснование записано в maxly-ios/docs/chat-presentation.md.

Два первых коммита ветки (индиго) отменены третьим. Итоговый diff относительно main — только градиент и обводка. При слиянии можно сделать squash.

Проверка

Сборка и запуск не проверены: в среде, где делалась правка, нет Xcode. Нужно посмотреть на устройстве:

  • свой пузырь в светлой и тёмной теме, короткий и длинный (пост в канале);
  • карточку «фото с подписью», голосовое, ответ с цитатой;
  • чужой пузырь в тёмной теме без обоев и с фото-обоями;
  • плавность прокрутки длинной ленты.

Own bubbles were pale green by day and muted blue by night, so the colour
changed with the theme. They are now
indigo (#4B59E6 light, #3D49C9 dark) with white text, like Android and
desktop; tokens for time, links, quotes, reactions and voice buttons follow.
Read checks on an own bubble are white, the chat list keeps blue ones.
Dark incoming bubbles are lighter (#1F2B38) and get a thin edge without a
photo wallpaper, so they no longer merge with the feed background.
#3D49C9 was loud on dark photo wallpapers; #3A43A6 keeps the hue and
white text at about 8.8:1.
The indigo is rolled back: own bubbles are pale green by day and blue by
night again, with their read checks. They now get a soft top-to-bottom
gradient within that colour. It follows the bubble, not the screen: feed
cells live in a UICollectionView, and a screen-anchored gradient would
mean redrawing every cell on every scroll frame. Dark incoming bubbles
without a photo wallpaper get a thin light edge so they stand out from
the feed background.
@fighxy
fighxy force-pushed the claude/sweet-ramanujan-3q64b7 branch from ddce916 to c4e9d10 Compare November 12, 2026 11:37
@fighxy
fighxy merged commit 2e799c1 into main Nov 12, 2026
3 checks passed
@fighxy
fighxy deleted the claude/sweet-ramanujan-3q64b7 branch November 12, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant