Merge pull request #1026 from 23rd/patch-23-empty-message-retina

Fixed display of text message in empty tabs for Retina screen.
This commit is contained in:
pajlada 2019-04-27 13:23:18 +02:00 committed by GitHub
commit f1569a4cd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
#include "Application.hpp" #include "Application.hpp"
#include "common/Common.hpp" #include "common/Common.hpp"
#include "debug/AssertInGuiThread.hpp" #include "debug/AssertInGuiThread.hpp"
#include "singletons/Fonts.hpp"
#include "singletons/Theme.hpp" #include "singletons/Theme.hpp"
#include "singletons/WindowManager.hpp" #include "singletons/WindowManager.hpp"
#include "util/Helpers.hpp" #include "util/Helpers.hpp"
@ -527,6 +528,10 @@ void SplitContainer::paintEvent(QPaintEvent *)
painter.setPen(this->theme->splits.header.text); 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"; QString text = "Click to add a split";
Notebook *notebook = dynamic_cast<Notebook *>(this->parentWidget()); Notebook *notebook = dynamic_cast<Notebook *>(this->parentWidget());