Support server-side colors by index, up to three.

This commit is contained in:
John Preston
2023-10-26 23:40:53 +04:00
parent cc8408d11c
commit 5d335341ab
21 changed files with 391 additions and 167 deletions

View File

@@ -506,7 +506,8 @@ ConfirmContactBox::ConfirmContactBox(
const Contact &data,
Fn<void(Qt::KeyboardModifiers)> submit)
: SimpleElementDelegate(controller, [=] { update(); })
, _chatStyle(std::make_unique<Ui::ChatStyle>())
, _chatStyle(std::make_unique<Ui::ChatStyle>(
history->session().colorIndicesValue()))
, _comment(GenerateCommentItem(this, history, data))
, _contact(GenerateContactItem(this, history, data))
, _submit(submit) {