fixed title node when using light theme

Fixes #1496
This commit is contained in:
itsmattkc
2021-03-22 12:05:36 +11:00
parent 62332eb216
commit 78e0777c27
+4 -1
View File
@@ -20,6 +20,7 @@
#include "text.h"
#include <QAbstractTextDocumentLayout>
#include <QTextDocument>
namespace olive {
@@ -156,7 +157,9 @@ void TextGenerator::GenerateFrame(FramePtr frame, const GenerateJob& job) const
break;
}
text_doc.drawContents(&p);
QAbstractTextDocumentLayout::PaintContext ctx;
ctx.palette.setColor(QPalette::Text, Qt::white);
text_doc.documentLayout()->draw(&p, ctx);
// Transplant alpha channel to frame
Color rgb = job.GetValue(kColorInput).data().value<Color>();