mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixed display of text in Go to Bottom button for Retina screen.
This commit is contained in:
parent
cff1aa0959
commit
a3f6d2b773
1 changed files with 5 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue