From 0a6459aed6be4d9702005ce29846618bb14f3336 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Tue, 4 Aug 2020 15:10:16 +0100 Subject: [PATCH] Restore link for alpha option from GUI --- backend_qt/qzint.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend_qt/qzint.cpp b/backend_qt/qzint.cpp index 2896b14b..b69590d7 100644 --- a/backend_qt/qzint.cpp +++ b/backend_qt/qzint.cpp @@ -87,8 +87,13 @@ namespace Zint { } strcpy(m_zintSymbol->fgcolour, m_fgColor.name().toLatin1().right(6)); + if (m_fgColor.alpha() != 0xff) { + strcat(m_zintSymbol->fgcolour, m_fgColor.name(QColor::HexArgb).toLatin1().mid(1,2)); + } strcpy(m_zintSymbol->bgcolour, m_bgColor.name().toLatin1().right(6)); - + if (m_bgColor.alpha() != 0xff) { + strcat(m_zintSymbol->bgcolour, m_bgColor.name(QColor::HexArgb).toLatin1().mid(1,2)); + } strcpy(m_zintSymbol->primary, m_primaryMessage.toLatin1().left(127)); }