Fix toast label palette.

Regression was introduced in eafd7dc818.
This commit is contained in:
John Preston 2022-12-22 21:45:42 +04:00
parent fbdc6ed5ac
commit d079108e29

View file

@ -149,13 +149,12 @@ void Widget::paintEvent(QPaintEvent *e) {
width());
}
p.setTextPalette(_st->palette);
const auto lines = _maxTextHeight / _st->style.font->height;
p.setPen(st::toastFg);
_text.draw(p, {
.position = { _st->padding.left(), _textTop },
.availableWidth = _textWidth + 1,
.palette = &_st->palette,
.spoiler = Ui::Text::DefaultSpoilerCache(),
.elisionLines = lines,
});