From 53640a90972602ba8f731ccd0b925dce19149f1d Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 27 Apr 2019 14:18:51 +0300 Subject: [PATCH] Fixed display of text message in empty tabs for Retina screen. --- src/widgets/splits/SplitContainer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widgets/splits/SplitContainer.cpp b/src/widgets/splits/SplitContainer.cpp index 507cd20e3..9fce4158b 100644 --- a/src/widgets/splits/SplitContainer.cpp +++ b/src/widgets/splits/SplitContainer.cpp @@ -3,6 +3,7 @@ #include "Application.hpp" #include "common/Common.hpp" #include "debug/AssertInGuiThread.hpp" +#include "singletons/Fonts.hpp" #include "singletons/Theme.hpp" #include "singletons/WindowManager.hpp" #include "util/Helpers.hpp" @@ -527,6 +528,10 @@ void SplitContainer::paintEvent(QPaintEvent *) painter.setPen(this->theme->splits.header.text); + const auto font = + getApp()->fonts->getFont(FontStyle::ChatMedium, this->scale()); + painter.setFont(font); + QString text = "Click to add a split"; Notebook *notebook = dynamic_cast(this->parentWidget());