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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user