Smooth folder icon scale.

This commit is contained in:
John Preston 2022-05-06 18:36:00 +04:00
parent 739123dedc
commit 090f83ae0d
1 changed files with 1 additions and 0 deletions

View File

@ -301,6 +301,7 @@ void FilterRowButton::paintEvent(QPaintEvent *e) {
const auto icon = Ui::LookupFilterIcon(_icon).normal;
// For now.
auto hq = PainterHighQualityEnabler(p);
const auto iconWidth = icon->width() - style::ConvertScale(9);
const auto scale = st::settingsIconAdd.width() / float64(iconWidth);
p.translate(