From 1f5179f84d73c73159476d6e87378eb24ce46d87 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Apr 19 2021 08:18:03 +0000 Subject: fix memo popup background color --- diff --git a/toonz/sources/toonz/xshnoteviewer.cpp b/toonz/sources/toonz/xshnoteviewer.cpp index f86b852..8c033b0 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