2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use color index from API.

This commit is contained in:
John Preston
2023-10-16 13:52:08 +04:00
parent f90a010b84
commit 4b6107fa56
26 changed files with 282 additions and 149 deletions

View File

@@ -986,7 +986,7 @@ void Generator::paintService(QString text) {
}
void Generator::paintUserpic(int x, int y, Row::Type type, int index, QString letters) {
const auto colorIndex = Ui::EmptyUserpic::ColorIndex(index);
const auto colorIndex = Ui::DecideColorIndex(index);
const auto colors = Ui::EmptyUserpic::UserpicColor(colorIndex);
auto userpic = Ui::EmptyUserpic(colors, letters);