OpenToonz - An open-source full-featured 2D animation creation software
C
fix memo popup background color
shun-iwasawa1f5179f84d73
diff --git a/toonz/sources/toonz/xshnoteviewer.cpp b/toonz/sources/toonz/xshnoteviewer.cppindex f86b852da..8c033b0ff 100644--- a/toonz/sources/toonz/xshnoteviewer.cpp+++ b/toonz/sources/toonz/xshnoteviewer.cpp@@ -31,12 +31,12 @@ QString computeBackgroundStyleSheetString(QColor color) {QVariant vR(color.red());QVariant vG(color.green());QVariant vB(color.blue());- QVariant vA(color.alpha());- return QString("#noteTextEdit { border-image: 0; background: rgbm(") +- vR.toString() + QString(",") + vG.toString() + QString(",") +- vB.toString() + QString(",") + vA.toString() + QString("); }");-}+ QVariant vA(color.alphaF());+ return QString(+ "#noteTextEdit { border-image: 0; background: rgba(%1,%2,%3,%4);}")+ .arg(vR.toString(), vG.toString(), vB.toString(), vA.toString());}+} // namespace//=============================================================================@@ -667,4 +667,4 @@ void NoteArea::onFrameDisplayStyleChanged(int id) {//------------------------------------------------------------------------------} // namespace XsheetGUI;+} // namespace XsheetGUI