2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

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

@@ -839,7 +839,9 @@ ForwardsPrivacyController::ForwardsPrivacyController(
not_null<Window::SessionController*> controller)
: SimpleElementDelegate(controller, [] {})
, _controller(controller)
, _chatStyle(std::make_unique<Ui::ChatStyle>()) {
, _chatStyle(
std::make_unique<Ui::ChatStyle>(
controller->session().colorIndicesValue())) {
_chatStyle->apply(controller->defaultChatTheme().get());
}