Fixed display of text message in empty tabs for Retina screen.

This commit is contained in:
23rd 2019-04-27 14:18:51 +03:00
parent 321d86de2c
commit 53640a9097

View file

@ -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<Notebook *>(this->parentWidget());