From a3f6d2b773c87e398da74ad77bcdd96413e98536 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 27 Apr 2019 15:42:51 +0300 Subject: [PATCH] Fixed display of text in Go to Bottom button for Retina screen. --- src/widgets/helper/ChannelView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 07c047eb..90c0e9b9 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -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)); } }