Fixed display of text in Go to Bottom button for Retina screen.

This commit is contained in:
23rd 2019-04-27 15:42:51 +03:00 committed by pajlada
parent cff1aa0959
commit a3f6d2b773

View file

@ -294,8 +294,12 @@ void ChannelView::scaleChangedEvent(float scale)
if (this->goToBottom_)
{
auto factor = this->qtFontScale();
#ifdef Q_OS_MACOS
factor = scale * 80.f / this->logicalDpiX() * this->devicePixelRatioF();
#endif
this->goToBottom_->getLabel().setFont(
getFonts()->getFont(FontStyle::UiMedium, this->qtFontScale()));
getFonts()->getFont(FontStyle::UiMedium, factor));
}
}